Commit a9c428f1 authored by Jani Nikula's avatar Jani Nikula

drm/panel-samsung-atna33xc20: switch to struct drm_edid

Prefer struct drm_edid based functions over struct edid.
Reviewed-by: default avatarNeil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/4ec5ec3ac5c5fbe738f51aeeb4363de1a9672684.1713273659.git.jani.nikula@intel.comSigned-off-by: default avatarJani Nikula <jani.nikula@intel.com>
parent e69da902
...@@ -36,7 +36,7 @@ struct atana33xc20_panel { ...@@ -36,7 +36,7 @@ struct atana33xc20_panel {
struct gpio_desc *el_on3_gpio; struct gpio_desc *el_on3_gpio;
struct drm_dp_aux *aux; struct drm_dp_aux *aux;
struct edid *edid; const struct drm_edid *drm_edid;
ktime_t powered_off_time; ktime_t powered_off_time;
ktime_t powered_on_time; ktime_t powered_on_time;
...@@ -253,9 +253,12 @@ static int atana33xc20_get_modes(struct drm_panel *panel, ...@@ -253,9 +253,12 @@ static int atana33xc20_get_modes(struct drm_panel *panel,
pm_runtime_get_sync(panel->dev); pm_runtime_get_sync(panel->dev);
if (!p->edid) if (!p->drm_edid)
p->edid = drm_get_edid(connector, &aux_ep->aux->ddc); p->drm_edid = drm_edid_read_ddc(connector, &aux_ep->aux->ddc);
num = drm_add_edid_modes(connector, p->edid);
drm_edid_connector_update(connector, p->drm_edid);
num = drm_edid_connector_add_modes(connector);
pm_runtime_mark_last_busy(panel->dev); pm_runtime_mark_last_busy(panel->dev);
pm_runtime_put_autosuspend(panel->dev); pm_runtime_put_autosuspend(panel->dev);
...@@ -351,7 +354,7 @@ static void atana33xc20_remove(struct dp_aux_ep_device *aux_ep) ...@@ -351,7 +354,7 @@ static void atana33xc20_remove(struct dp_aux_ep_device *aux_ep)
drm_panel_disable(&panel->base); drm_panel_disable(&panel->base);
drm_panel_unprepare(&panel->base); drm_panel_unprepare(&panel->base);
kfree(panel->edid); drm_edid_free(panel->drm_edid);
} }
static void atana33xc20_shutdown(struct dp_aux_ep_device *aux_ep) static void atana33xc20_shutdown(struct dp_aux_ep_device *aux_ep)
......
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