Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/xe/hdcp: Use xe_device struct

Use xe_device struct instead of drm_i915_private so as to not
cause confusion and comply with Xe standards as drm_i915_private is
xe_device under the hood.

--v2
-Fix commit message [Daniele]

Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
Reviewed-by: Arun R Murthy <arun.r.murthy@intel.com>
Signed-off-by: Mika Kahola <mika.kahola@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240306024247.1857881-4-suraj.kandpal@intel.com

authored by

Suraj Kandpal and committed by
Mika Kahola
b8e7996f c3fbdabd

+8 -7
+8 -7
drivers/gpu/drm/xe/display/xe_hdcp_gsc.c
··· 3 3 * Copyright 2023, Intel Corporation. 4 4 */ 5 5 6 - #include "i915_drv.h" 6 + #include <drm/drm_print.h> 7 7 #include "intel_hdcp_gsc.h" 8 + #include "xe_device_types.h" 8 9 9 - bool intel_hdcp_gsc_cs_required(struct drm_i915_private *i915) 10 + bool intel_hdcp_gsc_cs_required(struct xe_device *xe) 10 11 { 11 12 return true; 12 13 } 13 14 14 - bool intel_hdcp_gsc_check_status(struct drm_i915_private *i915) 15 + bool intel_hdcp_gsc_check_status(struct xe_device *xe) 15 16 { 16 17 return false; 17 18 } 18 19 19 - int intel_hdcp_gsc_init(struct drm_i915_private *i915) 20 + int intel_hdcp_gsc_init(struct xe_device *xe) 20 21 { 21 - drm_info(&i915->drm, "HDCP support not yet implemented\n"); 22 + drm_dbg_kms(&xe->drm, "HDCP support not yet implemented\n"); 22 23 return -ENODEV; 23 24 } 24 25 25 - void intel_hdcp_gsc_fini(struct drm_i915_private *i915) 26 + void intel_hdcp_gsc_fini(struct xe_device *xe) 26 27 { 27 28 } 28 29 29 - ssize_t intel_hdcp_gsc_msg_send(struct drm_i915_private *i915, u8 *msg_in, 30 + ssize_t intel_hdcp_gsc_msg_send(struct xe_device *xe, u8 *msg_in, 30 31 size_t msg_in_len, u8 *msg_out, 31 32 size_t msg_out_len) 32 33 {