drm/i915/dmc_wl: Sanitize enable_dmc_wl according to hardware support
authorGustavo Sousa <gustavo.sousa@intel.com>
Fri, 8 Nov 2024 12:57:19 +0000 (09:57 -0300)
committerMatt Roper <matthew.d.roper@intel.com>
Fri, 8 Nov 2024 17:54:07 +0000 (09:54 -0800)
commitc01e78a96e125b08bb8103d2737546dd4eb2ce00
tree534c0e2bbf7d0706fe8c4755d8d1a5945e7b53e1
parentc92ae71c1d06580395a230d78049ab59259e9ff1
drm/i915/dmc_wl: Sanitize enable_dmc_wl according to hardware support

Instead of checking for HAS_DMC_WAKELOCK() multiple times, let's use it
to sanitize the enable_dmc_wl parameter and use that variable when
necessary.

Reviewed-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Gustavo Sousa <gustavo.sousa@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241108130218.24125-15-gustavo.sousa@intel.com
drivers/gpu/drm/i915/display/intel_dmc_wl.c