OSDN Git Service

drm/edid: add drm_edid_connector_update()
authorJani Nikula <jani.nikula@intel.com>
Wed, 29 Jun 2022 09:27:50 +0000 (12:27 +0300)
committerJani Nikula <jani.nikula@intel.com>
Thu, 30 Jun 2022 07:51:01 +0000 (10:51 +0300)
commitb71c0aaab9ef1054155a075cf5e8a1db7b37ca5f
tree2eb6e612a5669a36bec560fe69c2296a4edbe57a
parent6aa145bc943d34bf05f2bc24ea3aa36d70470f1d
drm/edid: add drm_edid_connector_update()

Add a new function drm_edid_connector_update() to replace the
combination of calls drm_connector_update_edid_property() and
drm_add_edid_modes(). Usually they are called in the drivers in this
order, however the former needs information from the latter.

Since the new drm_edid_read*() functions no longer call the connector
updates directly, and the read and update are separated, we'll need this
new function for the connector update.

This is all in drm_edid.c simply to keep struct drm_edid opaque.

v2:
- Share code with drm_connector_update_edid_property() (Ville)
- Add comment about override EDID handling

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/75aa3dbc8c9aa26ebbcdeacd98a466ef8d8827f4.1656494768.git.jani.nikula@intel.com
drivers/gpu/drm/drm_edid.c
include/drm/drm_edid.h