drm/eld: add helpers to modify the SADs of an ELD
authorJani Nikula <jani.nikula@intel.com>
Tue, 31 Oct 2023 10:16:43 +0000 (12:16 +0200)
committerJani Nikula <jani.nikula@intel.com>
Thu, 9 Nov 2023 14:48:27 +0000 (16:48 +0200)
commitf415a6078f640ab15bae34d3c6a1d8e6071363de
treedc53de2a55adb7a81376baf4b3cf7b860e96cb8d
parent8af4681189e58a51be8a0fc9f0687e615cdb82c9
drm/eld: add helpers to modify the SADs of an ELD

Occasionally it's necessary for drivers to modify the SADs of an ELD,
but it's not so cool to have drivers poke at the ELD buffer directly.

Using the helpers to translate between 3-byte SAD and struct cea_sad,
add ELD helpers to get/set the SADs from/to an ELD.

v2: s/i/sad_index/ (Mitul)

Cc: Mitul Golani <mitulkumar.ajitkumar.golani@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Mitul Golani <mitulkumar.ajitkumar.golani@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/8e9a05f2b1e0dd184132d636e1e778e8917ec25d.1698747331.git.jani.nikula@intel.com
Documentation/gpu/drm-kms-helpers.rst
drivers/gpu/drm/Makefile
drivers/gpu/drm/drm_eld.c [new file with mode: 0644]
include/drm/drm_eld.h