drm/edid: split drm_edid block count helper
authorJani Nikula <jani.nikula@intel.com>
Mon, 24 Oct 2022 12:33:35 +0000 (15:33 +0300)
committerJani Nikula <jani.nikula@intel.com>
Wed, 26 Oct 2022 06:53:15 +0000 (09:53 +0300)
commitb16c9e6c7d91c91e97a30f69b408388726e0376d
tree60abdbffb78ca053d87f9af32e00df382314a1a8
parent019b93874834e7810499b65f4bfc990d16363581
drm/edid: split drm_edid block count helper

Split the drm_edid block count helper to a base version that reports the
block count indicated by EDID contents, and another on top that limits
the block count based on size allocated for the EDID.

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