]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/bridge: analogix_dp: Remove unused &analogix_dp_plat_data.get_modes()
authorDamon Ding <damon.ding@rock-chips.com>
Thu, 9 Apr 2026 06:52:52 +0000 (14:52 +0800)
committerLuca Ceresoli <luca.ceresoli@bootlin.com>
Thu, 9 Apr 2026 12:10:42 +0000 (14:10 +0200)
The callback &analogix_dp_plat_data.get_modes() is not implemented
by either Rockchip side or Exynos side.

Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Tested-by: Heiko Stuebner <heiko@sntech.de> # rk3588
Link: https://patch.msgid.link/20260409065301.446670-9-damon.ding@rock-chips.com
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
include/drm/bridge/analogix_dp.h

index c05cf100f17e45814a792df04814c60e1151edc4..09b8b5e4fa23f1ed084e9fd8a7c5f710809fcb9e 100644 (file)
@@ -875,9 +875,6 @@ static int analogix_dp_get_modes(struct drm_connector *connector)
                }
        }
 
-       if (dp->plat_data->get_modes)
-               num_modes += dp->plat_data->get_modes(dp->plat_data, connector);
-
        return num_modes;
 }
 
index f06da105d8f235b28571ed334ea057105b6dd5d2..3301392eda5f192d36b3c597f3ddeb0e7f5f955a 100644 (file)
@@ -35,8 +35,6 @@ struct analogix_dp_plat_data {
        int (*power_off)(struct analogix_dp_plat_data *);
        int (*attach)(struct analogix_dp_plat_data *, struct drm_bridge *,
                      struct drm_connector *);
-       int (*get_modes)(struct analogix_dp_plat_data *,
-                        struct drm_connector *);
 };
 
 int analogix_dp_resume(struct analogix_dp_device *dp);