Commit 183ea1e1 authored by Jani Nikula's avatar Jani Nikula

drm/bridge: display-connector: switch to ->edid_read callback

Prefer using the struct drm_edid based callback and functions.
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/4e59a181e71e20158106868d1a6f7165cd9193e3.1706038510.git.jani.nikula@intel.com
parent 1b48b6c4
...@@ -81,12 +81,12 @@ display_connector_detect(struct drm_bridge *bridge) ...@@ -81,12 +81,12 @@ display_connector_detect(struct drm_bridge *bridge)
} }
} }
static struct edid *display_connector_get_edid(struct drm_bridge *bridge, static const struct drm_edid *display_connector_edid_read(struct drm_bridge *bridge,
struct drm_connector *connector) struct drm_connector *connector)
{ {
struct display_connector *conn = to_display_connector(bridge); struct display_connector *conn = to_display_connector(bridge);
return drm_get_edid(connector, conn->bridge.ddc); return drm_edid_read_ddc(connector, conn->bridge.ddc);
} }
/* /*
...@@ -172,7 +172,7 @@ static u32 *display_connector_get_input_bus_fmts(struct drm_bridge *bridge, ...@@ -172,7 +172,7 @@ static u32 *display_connector_get_input_bus_fmts(struct drm_bridge *bridge,
static const struct drm_bridge_funcs display_connector_bridge_funcs = { static const struct drm_bridge_funcs display_connector_bridge_funcs = {
.attach = display_connector_attach, .attach = display_connector_attach,
.detect = display_connector_detect, .detect = display_connector_detect,
.get_edid = display_connector_get_edid, .edid_read = display_connector_edid_read,
.atomic_get_output_bus_fmts = display_connector_get_output_bus_fmts, .atomic_get_output_bus_fmts = display_connector_get_output_bus_fmts,
.atomic_get_input_bus_fmts = display_connector_get_input_bus_fmts, .atomic_get_input_bus_fmts = display_connector_get_input_bus_fmts,
.atomic_duplicate_state = drm_atomic_helper_bridge_duplicate_state, .atomic_duplicate_state = drm_atomic_helper_bridge_duplicate_state,
......
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