Commit 4f7ad8cc authored by Jani Nikula's avatar Jani Nikula

drm/bridge: lt8912b: use ->edid_read callback

Prefer using the struct drm_edid based functions.

Cc: Adrien Grassein <adrien.grassein@gmail.com>
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: default avatarJani Nikula <jani.nikula@intel.com>
Reviewed-by: default avatarNeil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/98f0356f1bd279bc337c904d8313c9afee530b48.1706038510.git.jani.nikula@intel.com
parent 29e03229
...@@ -620,8 +620,8 @@ lt8912_bridge_detect(struct drm_bridge *bridge) ...@@ -620,8 +620,8 @@ lt8912_bridge_detect(struct drm_bridge *bridge)
return lt8912_check_cable_status(lt); return lt8912_check_cable_status(lt);
} }
static struct edid *lt8912_bridge_get_edid(struct drm_bridge *bridge, static const struct drm_edid *lt8912_bridge_edid_read(struct drm_bridge *bridge,
struct drm_connector *connector) struct drm_connector *connector)
{ {
struct lt8912 *lt = bridge_to_lt8912(bridge); struct lt8912 *lt = bridge_to_lt8912(bridge);
...@@ -630,7 +630,7 @@ static struct edid *lt8912_bridge_get_edid(struct drm_bridge *bridge, ...@@ -630,7 +630,7 @@ static struct edid *lt8912_bridge_get_edid(struct drm_bridge *bridge,
* given to the hdmi connector node. * given to the hdmi connector node.
*/ */
if (lt->hdmi_port->ops & DRM_BRIDGE_OP_EDID) if (lt->hdmi_port->ops & DRM_BRIDGE_OP_EDID)
return drm_bridge_get_edid(lt->hdmi_port, connector); return drm_bridge_edid_read(lt->hdmi_port, connector);
dev_warn(lt->dev, "The connected bridge does not supports DRM_BRIDGE_OP_EDID\n"); dev_warn(lt->dev, "The connected bridge does not supports DRM_BRIDGE_OP_EDID\n");
return NULL; return NULL;
...@@ -642,7 +642,7 @@ static const struct drm_bridge_funcs lt8912_bridge_funcs = { ...@@ -642,7 +642,7 @@ static const struct drm_bridge_funcs lt8912_bridge_funcs = {
.mode_set = lt8912_bridge_mode_set, .mode_set = lt8912_bridge_mode_set,
.enable = lt8912_bridge_enable, .enable = lt8912_bridge_enable,
.detect = lt8912_bridge_detect, .detect = lt8912_bridge_detect,
.get_edid = lt8912_bridge_get_edid, .edid_read = lt8912_bridge_edid_read,
}; };
static int lt8912_bridge_resume(struct device *dev) static int lt8912_bridge_resume(struct device *dev)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment