summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/intel_ringbuffer.c
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2019-03-05 15:52:15 +0200
committerJani Nikula <jani.nikula@intel.com>2019-03-08 13:25:31 +0200
commitab3517c1eb01cfd97df8c83435fe43329e0cfae3 (patch)
treec4a258d55a6218db0c9138c0cd2462230c0a9ab4 /drivers/gpu/drm/i915/intel_ringbuffer.c
parent1b61c4a3eea2bead6725b6907616684497ff8765 (diff)
drm/i915/dp: use single point of truth for PPS divisor register
Set pp_div field of struct pps_registers to INVALID_MMIO_REG when the register isn't there, and use i915_mmio_reg_valid() instead of repeating the condition all over the place. Use INVALID_MMIO_REG explicitly for documentation purposes, even if the value is unchanged from 0. Cc: Rodrigo Vivi <rodrigo.vivi@intel.com> Cc: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190305135215.29862-2-jani.nikula@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/intel_ringbuffer.c')
0 files changed, 0 insertions, 0 deletions