OSDN Git Service

drm/edid: Allow looking for ext blocks starting from a specified index
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 27 May 2020 13:03:08 +0000 (16:03 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 9 Jul 2020 18:43:56 +0000 (21:43 +0300)
commit8873cfa384055d0348c03161420b1e9b6c1dc5d0
treee821fd8aa37a03b7699b2e172fad7534fa9ce7ba
parentd4ad4eca6c04705c9316ae4df18ff9c89e4e27f4
drm/edid: Allow looking for ext blocks starting from a specified index

Apparently EDIDs with multiple DispID ext blocks is a thing, so prepare
for iterating through multiple ext blocks of the same type by
passing the starting ext block index to drm_find_edid_extension(). Well
also have drm_find_edid_extension() update the index to point to the
next ext block on success. Thus we should be able to call
drm_find_edid_extension() in loop.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200527130310.27099-1-ville.syrjala@linux.intel.com
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
drivers/gpu/drm/drm_edid.c