drm/edid: Use new encoded panel id style for quirks matching
authorDouglas Anderson <dianders@chromium.org>
Tue, 14 Sep 2021 20:21:51 +0000 (13:21 -0700)
committerDouglas Anderson <dianders@chromium.org>
Mon, 20 Sep 2021 16:18:01 +0000 (09:18 -0700)
commite8de4d55c2590c57e0c1decedc4b0605528f27a7
tree69273509fa35247bd18d51c95f22a72b3effd791
parentd9f91a10c3e8b8b6f6762e35f2905a8914ca309d
drm/edid: Use new encoded panel id style for quirks matching

In the patch ("drm/edid: Allow the querying/working with the panel ID
from the EDID") we introduced a different way of working with the
panel ID stored in the EDID. Let's use this new way for the quirks
code.

Advantages of the new style:
* Smaller data structure size. Saves 4 bytes per panel.
* Iterate through quirks structure with just "==" instead of strncmp()
* In-kernel storage is more similar to what's stored in the EDID
  itself making it easier to grok that they are referring to the same
  value.

Signed-off-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20210914132020.v5.4.I6103ce2b16e5e5a842b14c7022a034712b434609@changeid
drivers/gpu/drm/drm_edid.c