[PATCH] dma-buf/sync_file: Use fdget()

2023-05-04 Thread ye.xingchen
From: Ye Xingchen convert the fget() use to fdget(). Signed-off-by: Ye Xingchen --- drivers/dma-buf/sync_file.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/dma-buf/sync_file.c b/drivers/dma-buf/sync_file.c index af57799c86ce..222b13b1bdb8 100644 ---

[PATCH] dma-buf: Use fdget()

2023-05-04 Thread ye.xingchen
From: Ye Xingchen convert the fget() use to fdget(). Signed-off-by: Ye Xingchen --- drivers/dma-buf/dma-buf.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/dma-buf/dma-buf.c b/drivers/dma-buf/dma-buf.c index aa4ea8530cb3..bf4980b6f80c 100644 ---

[PATCH] drm: xlnx: zynqmp: Use dev_err_probe()

2023-03-22 Thread ye.xingchen
From: Ye Xingchen Replace the open-code with dev_err_probe() to simplify the code. Signed-off-by: Ye Xingchen --- drivers/gpu/drm/xlnx/zynqmp_dp.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/xlnx/zynqmp_dp.c b/drivers/gpu/drm/xlnx/zynqmp_dp.c

[PATCH] drm/tegra: dpaux: Use dev_err_probe()

2023-03-22 Thread ye.xingchen
From: Ye Xingchen Replace the open-code with dev_err_probe() to simplify the code. Signed-off-by: Ye Xingchen --- drivers/gpu/drm/tegra/dpaux.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/tegra/dpaux.c b/drivers/gpu/drm/tegra/dpaux.c index

[PATCH] drm: bridge: simple-bridge: Use dev_err_probe()

2023-03-22 Thread ye.xingchen
From: Ye Xingchen Replace the open-code with dev_err_probe() to simplify the code. Signed-off-by: Ye Xingchen --- drivers/gpu/drm/bridge/simple-bridge.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/bridge/simple-bridge.c

[PATCH] drm/bridge: display-connector: Use dev_err_probe()

2023-03-22 Thread ye.xingchen
From: Ye Xingchen Replace the open-code with dev_err_probe() to simplify the code. Signed-off-by: Ye Xingchen --- drivers/gpu/drm/bridge/display-connector.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/bridge/display-connector.c

[PATCH] drm: omapdrm: use devm_platform_ioremap_resource_byname()

2023-03-21 Thread ye.xingchen
From: Ye Xingchen Convert platform_get_resource_byname(),devm_ioremap_resource() to a single call to devm_platform_ioremap_resource_byname(), as this is exactly what this function does. Signed-off-by: Ye Xingchen --- drivers/gpu/drm/omapdrm/dss/hdmi_wp.c | 3 +-- 1 file changed, 1

[PATCH v2] drm/amd/display: remove duplicate include header

2023-02-09 Thread ye.xingchen
From: Ye Xingchen link_hwss.h is included more than once in link_dpms.c . Signed-off-by: Ye Xingchen --- v1 -> v2 Fix the U+00A0 non-breaking space in the subject line. drivers/gpu/drm/amd/display/dc/link/link_dpms.c | 1 - 1 file changed, 1 deletion(-) diff --git

[PATCH] drm/amdgpu/display: remove duplicate include header in link_dpms.c

2023-02-08 Thread ye.xingchen
From: Ye Xingchen link_hwss.h is included more than once. Signed-off-by: Ye Xingchen --- drivers/gpu/drm/amd/display/dc/link/link_dpms.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/link/link_dpms.c b/drivers/gpu/drm/amd/display/dc/link/link_dpms.c index

[PATCH] gpu: ipu-v3: prg: use devm_platform_get_and_ioremap_resource()

2023-02-07 Thread ye.xingchen
From: Ye Xingchen Convert platform_get_resource(), devm_ioremap_resource() to a single call to devm_platform_get_and_ioremap_resource(), as this is exactly what this function does. Signed-off-by: Ye Xingchen --- drivers/gpu/ipu-v3/ipu-prg.c | 4 +--- 1 file changed, 1 insertion(+), 3

[PATCH] gpu: ipu-v3: pre: use devm_platform_get_and_ioremap_resource()

2023-02-07 Thread ye.xingchen
From: Ye Xingchen Convert platform_get_resource(), devm_ioremap_resource() to a single call to devm_platform_get_and_ioremap_resource(), as this is exactly what this function does. Signed-off-by: Ye Xingchen --- drivers/gpu/ipu-v3/ipu-pre.c | 4 +--- 1 file changed, 1 insertion(+), 3

[PATCH] gpu: host1x: mipi: use devm_platform_get_and_ioremap_resource()

2023-02-07 Thread ye.xingchen
From: Ye Xingchen Convert platform_get_resource(), devm_ioremap_resource() to a single call to devm_platform_get_and_ioremap_resource(), as this is exactly what this function does. Signed-off-by: Ye Xingchen --- drivers/gpu/host1x/mipi.c | 4 +--- 1 file changed, 1 insertion(+), 3

[PATCH] drm/amdgpu/display: remove duplicate include header in files

2023-01-27 Thread ye.xingchen
From: ye xingchen opp.h is included more than once. Signed-off-by: ye xingchen --- drivers/gpu/drm/amd/display/dc/core/dc_link.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link.c b/drivers/gpu/drm/amd/display/dc/core/dc_link.c index

[PATCH] drm: bridge: Use devm_platform_get_and_ioremap_resource()

2023-01-18 Thread ye.xingchen
From: ye xingchen Convert platform_get_resource(), devm_ioremap_resource() to a single call to devm_platform_get_and_ioremap_resource(), as this is exactly what this function does. Signed-off-by: ye xingchen --- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 5 + 1 file changed, 1

[PATCH] drm/bridge: Remove compilation error

2023-01-18 Thread ye.xingchen
From: ye xingchen drivers/gpu/drm/vc4/vc4_dsi.c :1822:13: error: 'struct drm_bridge' has no member named 'of_node'. Signed-off-by: ye xingchen --- include/drm/drm_bridge.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/drm/drm_bridge.h b/include/drm/drm_bridge.h index

[PATCH] drm/amd/display: remove duplicate included header files

2023-01-17 Thread ye.xingchen
From: ye xingchen resource.h is included more than once. Signed-off-by: ye xingchen --- drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c

[PATCH linux-next v3] fbdev: use sysfs_emit() to instead of scnprintf()

2022-12-05 Thread ye.xingchen
From: ye xingchen Follow the advice of the Documentation/filesystems/sysfs.rst and show() should only use sysfs_emit() or sysfs_emit_at() when formatting the value to be returned to user space. Signed-off-by: ye xingchen --- v2 -> v3 Fix the mistakes in v2.

[PATCH linux-next v2] fbdev: use sysfs_emit() to instead of scnprintf()

2022-12-05 Thread ye.xingchen
From: ye xingchen Follow the advice of the Documentation/filesystems/sysfs.rst and show() should only use sysfs_emit() or sysfs_emit_at() when formatting the value to be returned to user space. Signed-off-by: ye xingchen --- v1 -> v2 Add another patch about this in ./video/fbdev/

[PATCH linux-next] fbdev: use sysfs_emit() to instead of scnprintf()

2022-12-05 Thread ye.xingchen
From: ye xingchen Follow the advice of the Documentation/filesystems/sysfs.rst and show() should only use sysfs_emit() or sysfs_emit_at() when formatting the value to be returned to user space. Signed-off-by: ye xingchen --- drivers/video/fbdev/sh_mobile_lcdcfb.c | 8 1 file changed,

[PATCH linux-next] backlight: use sysfs_emit() to instead of scnprintf()

2022-12-04 Thread ye.xingchen
From: ye xingchen Follow the advice of the Documentation/filesystems/sysfs.rst and show() should only use sysfs_emit() or sysfs_emit_at() when formatting the value to be returned to user space. Signed-off-by: ye xingchen --- drivers/video/backlight/lm3533_bl.c | 10 +-

[PATCH] drm/i915: use sysfs_emit() to instead of scnprintf()

2022-11-30 Thread ye.xingchen
From: ye xingchen Replace the open-code with sysfs_emit() to simplify the code. Signed-off-by: ye xingchen --- drivers/gpu/drm/i915/i915_mitigations.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_mitigations.c

[PATCH] drm/amdgpu: use sysfs_emit() to instead of scnprintf()

2022-11-30 Thread ye.xingchen
From: ye xingchen Replace the open-code with sysfs_emit() to simplify the code. Signed-off-by: ye xingchen --- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c

[PATCH linux-next] drm/panel: Use device_match_of_node()

2022-11-16 Thread ye.xingchen
From: ye xingchen Replace the open-code with device_match_of_node(). Signed-off-by: ye xingchen --- drivers/gpu/drm/drm_panel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_panel.c b/drivers/gpu/drm/drm_panel.c index f634371c717a..ba66ac1ad88a 100644

[PATCH linux-next] drm/imx: Use device_match_of_node()

2022-11-16 Thread ye.xingchen
From: ye xingchen Replace the open-code with device_match_of_node(). Signed-off-by: ye xingchen --- drivers/gpu/drm/imx/imx-drm-core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/imx/imx-drm-core.c b/drivers/gpu/drm/imx/imx-drm-core.c index

[PATCH linux-next] drm/bridge: Use device_match_of_node()

2022-11-16 Thread ye.xingchen
From: ye xingchen Replace the open-code with device_match_of_node(). Signed-off-by: ye xingchen --- drivers/gpu/drm/drm_bridge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_bridge.c b/drivers/gpu/drm/drm_bridge.c index 1545c50fd1c8..4a8cafe2b130