]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9f7b9e9ee339cba337d24765b145951d0fa339f1
tree69273509fa35247bd18d51c95f22a72b3effd791
parent36e319403921f55c4168aa4e6c2a2b26aa712f86
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