drm/i915/hdcp: Convert intel_hdcp_enable to a blanket function
authorSuraj Kandpal <suraj.kandpal@intel.com>
Thu, 26 Oct 2023 12:11:39 +0000 (17:41 +0530)
committerAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Tue, 31 Oct 2023 09:42:24 +0000 (15:12 +0530)
commit4f60f06a41f441cd5a8570c61701ba40796fa52c
tree7f9f90d7df2f7c81105bec7acc4843c18b373aa8
parentda36ce00997e10ed06c9fa66fbce546cad23815f
drm/i915/hdcp: Convert intel_hdcp_enable to a blanket function

Let's convert intel_hdcp_enable to a blanket function
which just has some conditions which needs to be checked
before connectors enable hdcp.
This cleans up code and avoids code duplication.

--v3
-Keep function name as intel_hdcp_enable() [Jani]

Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231026121139.987437-3-suraj.kandpal@intel.com
drivers/gpu/drm/i915/display/intel_ddi.c
drivers/gpu/drm/i915/display/intel_dp_mst.c
drivers/gpu/drm/i915/display/intel_hdcp.c
drivers/gpu/drm/i915/display/intel_hdcp.h