]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/i915/dp: use single point of truth for PPS divisor register
authorJani Nikula <jani.nikula@intel.com>
Tue, 5 Mar 2019 13:52:15 +0000 (15:52 +0200)
committerJani Nikula <jani.nikula@intel.com>
Fri, 8 Mar 2019 11:25:31 +0000 (13:25 +0200)
commitab3517c1eb01cfd97df8c83435fe43329e0cfae3
treec4a258d55a6218db0c9138c0cd2462230c0a9ab4
parent1b61c4a3eea2bead6725b6907616684497ff8765
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
drivers/gpu/drm/i915/intel_dp.c