]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/bridge: analogix_dp: Remove unused struct drm_connector* for &analogix_dp_plat_da...
authorDamon Ding <damon.ding@rock-chips.com>
Thu, 9 Apr 2026 06:52:53 +0000 (14:52 +0800)
committerLuca Ceresoli <luca.ceresoli@bootlin.com>
Thu, 9 Apr 2026 12:10:46 +0000 (14:10 +0200)
For both Rockchip and Exynos sides, the struct drm_connector* is
never used in callback &analogix_dp_plat_data.attach(). After
applying drm_bridge_connector helper, this parameter will no longer
be used at all.

Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Link: https://patch.msgid.link/20260409065301.446670-10-damon.ding@rock-chips.com
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
drivers/gpu/drm/exynos/exynos_dp.c
include/drm/bridge/analogix_dp.h

index 09b8b5e4fa23f1ed084e9fd8a7c5f710809fcb9e..840c1963e60e9a364f30a8046af291fd73773fad 100644 (file)
@@ -991,7 +991,7 @@ static int analogix_dp_bridge_attach(struct drm_bridge *bridge,
         * point after plat attached.
         */
        if (dp->plat_data->attach) {
-               ret = dp->plat_data->attach(dp->plat_data, bridge, connector);
+               ret = dp->plat_data->attach(dp->plat_data, bridge);
                if (ret) {
                        DRM_ERROR("Failed at platform attach func\n");
                        return ret;
index 1eeb0b15f99acaddd37e1ce1980dacda6f67f53e..71a00ee9778210ce100909b6a8969808553d0b3f 100644 (file)
@@ -70,8 +70,7 @@ static int exynos_dp_poweroff(struct analogix_dp_plat_data *plat_data)
 }
 
 static int exynos_dp_bridge_attach(struct analogix_dp_plat_data *plat_data,
-                                  struct drm_bridge *bridge,
-                                  struct drm_connector *connector)
+                                  struct drm_bridge *bridge)
 {
        struct exynos_dp_device *dp = to_dp(plat_data);
        enum drm_bridge_attach_flags flags = 0;
index 3301392eda5f192d36b3c597f3ddeb0e7f5f955a..3428ffff24c510a8bf559af5e2982930b4caf7d3 100644 (file)
@@ -33,8 +33,7 @@ struct analogix_dp_plat_data {
 
        int (*power_on)(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 (*attach)(struct analogix_dp_plat_data *, struct drm_bridge *);
 };
 
 int analogix_dp_resume(struct analogix_dp_device *dp);