drm/bridge: use drm_bridge_get_edid() instead of using ->get_edid directly
authorJani Nikula <jani.nikula@intel.com>
Thu, 14 Sep 2023 13:14:49 +0000 (16:14 +0300)
committerJani Nikula <jani.nikula@intel.com>
Thu, 28 Sep 2023 09:26:45 +0000 (12:26 +0300)
Make drm_bridge_get_edid() the one place to call the hook.

Cc: Andrzej Hajda <andrzej.hajda@intel.com>
Cc: Neil Armstrong <neil.armstrong@linaro.org>
Cc: Robert Foss <rfoss@kernel.org>
Cc: Laurent Pinchart <Laurent.pinchart@ideasonboard.com>
Cc: Jonas Karlman <jonas@kwiboo.se>
Cc: Jernej Skrabec <jernej.skrabec@gmail.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230914131450.2473061-1-jani.nikula@intel.com
drivers/gpu/drm/drm_bridge_connector.c

index 1da93d5..31baf1f 100644 (file)
@@ -238,7 +238,7 @@ static int drm_bridge_connector_get_modes_edid(struct drm_connector *connector,
        if (status != connector_status_connected)
                goto no_edid;
 
-       edid = bridge->funcs->get_edid(bridge, connector);
+       edid = drm_bridge_get_edid(bridge, connector);
        if (!drm_edid_is_valid(edid)) {
                kfree(edid);
                goto no_edid;