]> git.baikalelectronics.ru Git - kernel.git/commit
drm/edid: add EDID block count and size helpers
authorJani Nikula <jani.nikula@intel.com>
Mon, 11 Apr 2022 14:00:35 +0000 (17:00 +0300)
committerJani Nikula <jani.nikula@intel.com>
Thu, 14 Apr 2022 13:52:01 +0000 (16:52 +0300)
commit0a0798bc50095d515267c145273619faf448cc1b
tree6fdd5c254f518ac0f55503b429061b1b9aa1ada5
parent62962299dbc7d4e1d672417f70bd46d0eb7ad6c8
drm/edid: add EDID block count and size helpers

Add some helpers to figure out the EDID extension block count, block
count, size, pointers to blocks.

Unfortunately, we'll need to cast away the const in a few places where
we actually need to access the data.

v3: fix (!edid_extension_block_count(edid) == 0) (kernel test robot)

v2: fix s/j/i/ introduced in a rebase

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/dc7b0850293d837439fb3914c8a9d81e39018b4b.1649685475.git.jani.nikula@intel.com
drivers/gpu/drm/drm_edid.c