[PATCH] drm/mediatek: Replace custom compare_dev with component_compare_of

2025-04-05 Thread shao.mingyin
From: Tang Dongxing Remove the custom device comparison function compare_dev and replace it with the existing kernel helper component_compare_of Signed-off-by: Tang Dongxing Signed-off-by: Shao Mingyin --- drivers/gpu/drm/mediatek/mtk_disp_ovl_adaptor.c | 7 +-- 1 file changed, 1 insertio

[PATCH linux-next 0/2] Use dev_err_probe() in gpu

2025-04-05 Thread shao.mingyin
From: Zhang Enpei Use dev_err_probe() to simplify the following code sequence: if (err != -EPROBE_DEFER) dev_err(dev, ...); else dev_dbg(dev, ...); return err; Zhang Enpei (2): gpu: drm: tegra: dpaux: Use dev_err_probe() gpu: drm: xlnx: zynqmp_dp: Use dev_err_probe() driv

[PATCH 4/4] drm: mediatek: Replace custom compare_dev with component_compare_of

2025-04-04 Thread shao.mingyin
From: Tang Dongxing Remove the custom device comparison function compare_dev and replace it with the existing kernel helper component_compare_of Signed-off-by: Tang Dongxing Signed-off-by: Shao Mingyin --- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 7 +-- 1 file changed, 1 insertion(+), 6 d

[PATCH linux-next 2/2] gpu: drm: xlnx: zynqmp_dp: Use dev_err_probe()

2025-04-02 Thread shao.mingyin
From: Zhang Enpei Replace the open-code with dev_err_probe() to simplify the code. Signed-off-by: Zhang Enpei Signed-off-by: Shao Mingyin --- 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/g

[PATCH linux-next 1/2] gpu: drm: tegra: dpaux: Use dev_err_probe()

2025-04-02 Thread shao.mingyin
From: Zhang Enpei Replace the open-code with dev_err_probe() to simplify the code. Signed-off-by: Zhang Enpei Signed-off-by: Shao Mingyin --- 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/g

[PATCH 1/4] drm: adp: Replace custom compare_dev with component_compare_of

2025-03-31 Thread shao.mingyin
From: Tang Dongxing Remove the custom device comparison function compare_dev and replace it with the existing kernel helper component_compare_of Signed-off-by: Tang Dongxing Signed-off-by: Shao Mingyin --- drivers/gpu/drm/adp/adp_drv.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(

[PATCH 2/4] drm: arm: hdlcd: Replace custom compare_dev with component_compare_of

2025-03-31 Thread shao.mingyin
From: Tang Dongxing Remove the custom device comparison function compare_dev and replace it with the existing kernel helper component_compare_of Signed-off-by: Tang Dongxing Signed-off-by: Shao Mingyin --- drivers/gpu/drm/arm/hdlcd_drv.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletion

[PATCH 3/4] drm: malidp: Replace custom compare_dev with component_compare_of

2025-03-31 Thread shao.mingyin
From: Tang Dongxing Remove the custom device comparison function compare_dev and replace it with the existing kernel helper component_compare_of Signed-off-by: Tang Dongxing Signed-off-by: Shao Mingyin --- drivers/gpu/drm/arm/malidp_drv.c | 9 + 1 file changed, 1 insertion(+), 8 delet

[PATCH 0/4] Replace custom compare_dev with component_compare_of in drm

2025-03-31 Thread shao.mingyin
From: Tang Dongxing Remove the custom device comparison function compare_dev and replace it with the existing kernel helper component_compare_of, as suggested in the review feedback. This simplifies the code by eliminating redundant logic and aligns with the pattern used in other DRM drivers like

[PATCH] drm/imx: Use device_match_of_node()

2025-03-28 Thread shao.mingyin
From: Tang Dongxing Replace the open-code with device_match_of_node(). Signed-off-by: Tang Dongxing Signed-off-by: Shao Mingyin --- drivers/gpu/drm/imx/ipuv3/imx-drm-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/imx/ipuv3/imx-drm-core.c b/drivers/

[PATCH] drm: adp: Use device_match_of_node()

2025-03-28 Thread shao.mingyin
From: Tang Dongxing Replace the open-code with device_match_of_node(). Signed-off-by: Tang Dongxing Signed-off-by: Shao Mingyin --- drivers/gpu/drm/adp/adp_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/adp/adp_drv.c b/drivers/gpu/drm/adp/adp_drv.c i

[PATCH] drm/xlnx: zynqmp_dp: Use dev_err_probe()

2025-03-28 Thread shao.mingyin
From: Zhang Enpei Replace the open-code with dev_err_probe() to simplify the code. Signed-off-by: Zhang Enpei Signed-off-by: Shao Mingyin --- 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/g

[PATCH] drm/mipi-dsi: Use device_match_of_node()

2025-03-27 Thread shao.mingyin
From: Tang Dongxing Replace the open-code with device_match_of_node(). Signed-off-by: Tang Dongxing Signed-off-by: Shao Mingyin --- drivers/gpu/drm/drm_mipi_dsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_mipi_dsi.c b/drivers/gpu/drm/drm_mipi_dsi.

[PATCH] drm/panel: Use device_match_of_node()

2025-03-27 Thread shao.mingyin
From: Tang Dongxing Replace the open-code with device_match_of_node(). Signed-off-by: Tang Dongxing Signed-off-by: Shao Mingyin --- 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 c