drm/i915/hdcp: Move common message filling function to its own file
authorSuraj Kandpal <suraj.kandpal@intel.com>
Mon, 9 Oct 2023 09:55:37 +0000 (15:25 +0530)
committerUma Shankar <uma.shankar@intel.com>
Thu, 12 Oct 2023 04:01:32 +0000 (09:31 +0530)
commit0f5b11442e2f6b86436caabba6cb97265bb381c2
treea14a1db64a89e1b08d30148d2fc4ee9ff0440271
parent99f106ad5063444361139f9bd727e61383b2b93c
drm/i915/hdcp: Move common message filling function to its own file

Create a new file intel_hdcp_gsc_message that contain functions
which fill the hdcp messages we send to gsc cs this refactor will
help us reuse code for Xe later on

--v2
-add the missed file for proper build

--v3
-use forward declarations instead of #includes [Jani]

--v4
-move linux/err.h to intel_hdcp_gsc_message.c from
intel_hdcp_gsc_message.h [Jani]

--v5
-move linux include on top of drm includes [Uma]

Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
Reviewed-by: Uma Shankar <uma.shankar@intel.com>
Acked-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Uma Shankar <uma.shankar@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231009095537.653619-3-suraj.kandpal@intel.com
drivers/gpu/drm/i915/Makefile
drivers/gpu/drm/i915/display/intel_hdcp_gsc.c
drivers/gpu/drm/i915/display/intel_hdcp_gsc_message.c [new file with mode: 0644]
drivers/gpu/drm/i915/display/intel_hdcp_gsc_message.h [new file with mode: 0644]