]> git.baikalelectronics.ru Git - kernel.git/commit
drm/edid: clean up cea_db_is_*() functions
authorJani Nikula <jani.nikula@intel.com>
Tue, 3 May 2022 09:23:52 +0000 (12:23 +0300)
committerJani Nikula <jani.nikula@intel.com>
Thu, 5 May 2022 17:16:53 +0000 (20:16 +0300)
commit87b435ed8dca616edd62f0081f81859ac2c5a99d
treeb6dbcacd967fd0234e3fe0468ab5e0e63212fafb
parent058156273cb6eddbed0722e856b267f8228f7459
drm/edid: clean up cea_db_is_*() functions

Abstract helpers for matching vendor data blocks and extended tags, and
use them to simplify all the cea_db_is_*() functions.

Take void pointer as parameter to allow transitional use for both u8 *
and struct cea_db *.

v2: Remove superfluous parens (Ville)

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
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/b6bb813afc35c763e744c6cdb4a787da3adf910b.1651569697.git.jani.nikula@intel.com
drivers/gpu/drm/drm_edid.c