]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915/pps: only touch the vlv_ members on VLV/CHV
authorJani Nikula <jani.nikula@intel.com>
Wed, 18 Sep 2024 17:47:43 +0000 (20:47 +0300)
committerJani Nikula <jani.nikula@intel.com>
Thu, 19 Sep 2024 07:48:40 +0000 (10:48 +0300)
commit254b109d65e53f58ec1926047868aa3a285c7e0a
tree310f05d6142e81db26b099f62a1c9467ff3d1b60
parent66bdc6a61e679ac182c7ae998ad06ba0c47c0a59
drm/i915/pps: only touch the vlv_ members on VLV/CHV

While the struct intel_pps vlv_pps_pipe and vlv_active_pipe members are
only relevant for VLV/CHV, we still initialize them on all platforms and
check them on BXT/GLK. Wrap all access inside VLV/CHV checks for
consistency.

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/158c7b30e56d22aa3f9c9e51e87b9d89687d74d5.1726681620.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_dp.c
drivers/gpu/drm/i915/display/intel_pps.c