diff options
author | 2024-04-16 16:22:29 +0300 | |
---|---|---|
committer | 2024-04-22 21:44:31 +0300 | |
commit | 6221deb716b9d5397c09ba6567f7ae61d8cbeb98 (patch) | |
tree | 5f18148efb394362656223252e9d2292acba6353 /drivers/gpu/drm/rockchip | |
parent | drm/rockchip: inno_hdmi: switch to struct drm_edid (diff) | |
download | linux-6221deb716b9d5397c09ba6567f7ae61d8cbeb98.tar.gz linux-6221deb716b9d5397c09ba6567f7ae61d8cbeb98.tar.bz2 linux-6221deb716b9d5397c09ba6567f7ae61d8cbeb98.zip |
drm/rockchip: rk3066_hdmi: switch to struct drm_edid
Prefer struct drm_edid based functions over struct edid.
Acked-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/56ee6b7c3c018df55f5fe48a3e6d705dbad5ef74.1713273659.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'drivers/gpu/drm/rockchip')
-rw-r--r-- | drivers/gpu/drm/rockchip/rk3066_hdmi.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/gpu/drm/rockchip/rk3066_hdmi.c b/drivers/gpu/drm/rockchip/rk3066_hdmi.c index 95cd1b49eda8..784de990da1b 100644 --- a/drivers/gpu/drm/rockchip/rk3066_hdmi.c +++ b/drivers/gpu/drm/rockchip/rk3066_hdmi.c @@ -466,18 +466,16 @@ rk3066_hdmi_connector_detect(struct drm_connector *connector, bool force) static int rk3066_hdmi_connector_get_modes(struct drm_connector *connector) { struct rk3066_hdmi *hdmi = connector_to_rk3066_hdmi(connector); - struct edid *edid; + const struct drm_edid *drm_edid; int ret = 0; if (!hdmi->ddc) return 0; - edid = drm_get_edid(connector, hdmi->ddc); - if (edid) { - drm_connector_update_edid_property(connector, edid); - ret = drm_add_edid_modes(connector, edid); - kfree(edid); - } + drm_edid = drm_edid_read_ddc(connector, hdmi->ddc); + drm_edid_connector_update(connector, drm_edid); + ret = drm_edid_connector_add_modes(connector); + drm_edid_free(drm_edid); return ret; } |