drm/i915/hdcp: Move intel_hdcp_gsc_message def away from header file
authorSuraj Kandpal <suraj.kandpal@intel.com>
Wed, 6 Mar 2024 02:47:42 +0000 (08:17 +0530)
committerMika Kahola <mika.kahola@intel.com>
Wed, 6 Mar 2024 07:50:47 +0000 (09:50 +0200)
Move intel_hdcp_gsc_message definition into intel_hdcp_gsc.c
so that intel_hdcp_gsc_message can be redefined for xe as needed.

--v2
-Correct commit message to reflect what patch is actually doing [Arun]

Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
Reviewed-by: Arun R Murthy <arun.r.murthy@intel.com>
Acked-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Mika Kahola <mika.kahola@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240306024741.1858039-2-suraj.kandpal@intel.com
drivers/gpu/drm/i915/display/intel_hdcp_gsc.c
drivers/gpu/drm/i915/display/intel_hdcp_gsc.h

index 302bff75b06c56f6d973df7364cb62cf8a388ce4..35823e1f65d658da2dddac5354c7c070b95f16f4 100644 (file)
 #include "intel_hdcp_gsc.h"
 #include "intel_hdcp_gsc_message.h"
 
+struct intel_hdcp_gsc_message {
+       struct i915_vma *vma;
+       void *hdcp_cmd_in;
+       void *hdcp_cmd_out;
+};
+
 bool intel_hdcp_gsc_cs_required(struct drm_i915_private *i915)
 {
        return DISPLAY_VER(i915) >= 14;
index eba2057c5a9e6f1bca0d3b752390af8be9fe87e2..5f610df61cc9fa03a4a61243bff811fc0985313b 100644 (file)
 #include <linux/types.h>
 
 struct drm_i915_private;
-
-struct intel_hdcp_gsc_message {
-       struct i915_vma *vma;
-       void *hdcp_cmd_in;
-       void *hdcp_cmd_out;
-};
+struct intel_hdcp_gsc_message;
 
 bool intel_hdcp_gsc_cs_required(struct drm_i915_private *i915);
 ssize_t intel_hdcp_gsc_msg_send(struct drm_i915_private *i915, u8 *msg_in,