OSDN Git Service

drm/edid: add drm_edid_raw() to access the raw EDID data
authorJani Nikula <jani.nikula@intel.com>
Wed, 29 Jun 2022 09:27:52 +0000 (12:27 +0300)
committerJani Nikula <jani.nikula@intel.com>
Thu, 30 Jun 2022 07:51:05 +0000 (10:51 +0300)
commit3d1ab66e043f2a143e4d93242de7710a9c98c829
tree768f5bc4b69b7de673b1ee47df559ef1a4d6f21b
parent964893d3caff6bc39f6cf5cb7d90fd78a810c535
drm/edid: add drm_edid_raw() to access the raw EDID data

Unfortunately, there are still plenty of interfaces around that require
a struct edid pointer, and it's impossible to change them all at
once. Add an accessor to the raw EDID data to help the transition.

While there are no such cases now, be defensive against raw EDID
extension count indicating bigger EDID than is actually allocated.

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/fb55d0b580d556bf2b8e58070239657ac9cb4b2f.1656494768.git.jani.nikula@intel.com
drivers/gpu/drm/drm_edid.c
include/drm/drm_edid.h