mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-09-22 09:34:56 +02:00
drm/i915/hdcp: migrate away from kdev_to_i915() in bind/unbind
[ Upstream commit3eac4684ec] Use to_intel_display() instead of kdev_to_i915() in the HDCP component API hooks. Avoid further drive-by changes at this point, and just convert the display pointer to i915, and leave the struct intel_display conversion for later. Reviewed-by: Gustavo Sousa <gustavo.sousa@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/0beedaa438e912828b48d9980f017807e079d7ab.1724942754.git.jani.nikula@intel.com Signed-off-by: Jani Nikula <jani.nikula@intel.com> Stable-dep-of:db9e64c983("drm/i915/hdcp: require monotonically increasing seq_num_v") Signed-off-by: Sasha Levin <sashal@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
b02ed4c909
commit
d1ba0459d8
@@ -2108,10 +2108,11 @@ static void intel_hdcp_check_work(struct work_struct *work)
|
||||
DRM_HDCP_CHECK_PERIOD_MS);
|
||||
}
|
||||
|
||||
static int i915_hdcp_component_bind(struct device *i915_kdev,
|
||||
static int i915_hdcp_component_bind(struct device *drv_kdev,
|
||||
struct device *mei_kdev, void *data)
|
||||
{
|
||||
struct drm_i915_private *i915 = kdev_to_i915(i915_kdev);
|
||||
struct intel_display *display = to_intel_display(drv_kdev);
|
||||
struct drm_i915_private *i915 = to_i915(display->drm);
|
||||
|
||||
drm_dbg(&i915->drm, "I915 HDCP comp bind\n");
|
||||
mutex_lock(&i915->display.hdcp.hdcp_mutex);
|
||||
@@ -2122,10 +2123,11 @@ static int i915_hdcp_component_bind(struct device *i915_kdev,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void i915_hdcp_component_unbind(struct device *i915_kdev,
|
||||
static void i915_hdcp_component_unbind(struct device *drv_kdev,
|
||||
struct device *mei_kdev, void *data)
|
||||
{
|
||||
struct drm_i915_private *i915 = kdev_to_i915(i915_kdev);
|
||||
struct intel_display *display = to_intel_display(drv_kdev);
|
||||
struct drm_i915_private *i915 = to_i915(display->drm);
|
||||
|
||||
drm_dbg(&i915->drm, "I915 HDCP comp unbind\n");
|
||||
mutex_lock(&i915->display.hdcp.hdcp_mutex);
|
||||
|
||||
Reference in New Issue
Block a user