drm/edid: Define the quirks in an enum list
authorImre Deak <imre.deak@intel.com>
Thu, 5 Jun 2025 08:28:47 +0000 (11:28 +0300)
committerImre Deak <imre.deak@intel.com>
Thu, 12 Jun 2025 17:42:27 +0000 (20:42 +0300)
commit5281cbe0b55a1ff9c6c29361540016873bdc506e
tree71d42d3e469962ca746a52cff6a02f0a140a4bb9
parenta40c5d727b8111b5db424a1e43e14a1dcce1e77f
drm/edid: Define the quirks in an enum list

An enum list is better suited to define a quirk list, do that. This
makes looking up a quirk more robust and also allows for separating
quirks internal to the EDID parser and global quirks which can be
queried outside of the EDID parser (added as a follow-up).

Suggested-by: Jani Nikula <jani.nikula@linux.intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://lore.kernel.org/r/20250605082850.65136-3-imre.deak@intel.com
drivers/gpu/drm/drm_edid.c