]> git.baikalelectronics.ru Git - kernel.git/commit
drm/edid: add new interfaces around struct drm_edid
authorJani Nikula <jani.nikula@intel.com>
Wed, 8 Jun 2022 07:50:35 +0000 (10:50 +0300)
committerJani Nikula <jani.nikula@intel.com>
Mon, 13 Jun 2022 09:30:54 +0000 (12:30 +0300)
commitcdeaec194bdb5495968440497cb3106afcc0193a
treedae361f1a6c403b58396ea7506bc2a3ea966c40d
parent282c0b29ffce4860c47ff6725187989b37da19fe
drm/edid: add new interfaces around struct drm_edid

Add new functions drm_edid_read(), drm_edid_read_ddc(), and
drm_edid_read_custom() to replace drm_get_edid() and drm_do_get_edid()
for reading the EDID. The transition is expected to happen over a fairly
long time.

Note that the new drm_edid_read*() functions do not do any of the
connector updates anymore. The reading and parsing will be completely
separated from each other.

Add new functions drm_edid_alloc(), drm_edid_dup(), and drm_edid_free()
for allocating and freeing drm_edid containers.

Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
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/5a6532a94cad6a79424f6d1918dbe7b7d607ac03.1654674560.git.jani.nikula@intel.com
drivers/gpu/drm/drm_edid.c
include/drm/drm_edid.h