]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm: xlnx: zynqmp_dpsub: switch to ->edid_read callback
authorJani Nikula <jani.nikula@intel.com>
Tue, 23 Jan 2024 19:37:38 +0000 (21:37 +0200)
committerJani Nikula <jani.nikula@intel.com>
Fri, 9 Feb 2024 08:16:03 +0000 (10:16 +0200)
Prefer using the struct drm_edid based callback and functions.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/549694273b57e7275de01daf8ce60579121998d4.1706038510.git.jani.nikula@intel.com
drivers/gpu/drm/xlnx/zynqmp_dp.c

index 9f48e5bbcdecc010ea5bdcc337dd42b4ac41f866..1846c4971fd8dc10773556cef418a2ca4829dcdb 100644 (file)
@@ -1560,12 +1560,12 @@ disconnected:
        return connector_status_disconnected;
 }
 
-static struct edid *zynqmp_dp_bridge_get_edid(struct drm_bridge *bridge,
-                                             struct drm_connector *connector)
+static const struct drm_edid *zynqmp_dp_bridge_edid_read(struct drm_bridge *bridge,
+                                                        struct drm_connector *connector)
 {
        struct zynqmp_dp *dp = bridge_to_dp(bridge);
 
-       return drm_get_edid(connector, &dp->aux.ddc);
+       return drm_edid_read_ddc(connector, &dp->aux.ddc);
 }
 
 static const struct drm_bridge_funcs zynqmp_dp_bridge_funcs = {
@@ -1579,7 +1579,7 @@ static const struct drm_bridge_funcs zynqmp_dp_bridge_funcs = {
        .atomic_reset = drm_atomic_helper_bridge_reset,
        .atomic_check = zynqmp_dp_bridge_atomic_check,
        .detect = zynqmp_dp_bridge_detect,
-       .get_edid = zynqmp_dp_bridge_get_edid,
+       .edid_read = zynqmp_dp_bridge_edid_read,
 };
 
 /* -----------------------------------------------------------------------------