drm/edid: abstract OUI conversion to 24-bit int
authorJani Nikula <jani.nikula@intel.com>
Tue, 31 Aug 2021 14:17:32 +0000 (17:17 +0300)
committerJani Nikula <jani.nikula@intel.com>
Tue, 14 Sep 2021 11:21:49 +0000 (14:21 +0300)
commit37eab1fe61412d9f1dfc57c2f69a3f927b1c6c76
tree75559f5ac55c41ca6dac37ce7ca0c3466fa94e4a
parentb5c24049fd17ca053380eb6a58d685ff99f9a319
drm/edid: abstract OUI conversion to 24-bit int

Replace the open coded OUI conversion from three bytes to a 24-bit int,
as we'll be adding one more user shortly. No functional changes.

Side note: CTA-861 format has the OUI bytes in reverse order.

Reviewed-by: Uma Shankar <uma.shankar@intel.com>
Acked-by: Maxime Ripard <maxime@cerno.tech>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/2f43032d5f001510c7eed059321ceeb76d07a606.1630419362.git.jani.nikula@intel.com
drivers/gpu/drm/drm_edid.c