drm/edid: add helpers to get/set struct cea_sad from/to 3-byte sad
authorJani Nikula <jani.nikula@intel.com>
Tue, 31 Oct 2023 10:16:42 +0000 (12:16 +0200)
committerJani Nikula <jani.nikula@intel.com>
Thu, 9 Nov 2023 14:47:56 +0000 (16:47 +0200)
commit8af4681189e58a51be8a0fc9f0687e615cdb82c9
treefc22f3f3bb9b38485c36db4db753deb5480ba09b
parente8d0b2c06fd779709baea71d5e8bfd99b2116518
drm/edid: add helpers to get/set struct cea_sad from/to 3-byte sad

Add helpers to pack/unpack SADs. Both ways and non-static, as follow-up
work needs them.

v2: Add include to get the declarations

Cc: Mitul Golani <mitulkumar.ajitkumar.golani@intel.com>
Reviewed-by: Mitul Golani <mitulkumar.ajitkumar.golani@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/21d657ca854ce26423b461c0bb71e7a0727ba437.1698747331.git.jani.nikula@intel.com
drivers/gpu/drm/drm_edid.c
drivers/gpu/drm/drm_internal.h