diff options
author | Jani Nikula <jani.nikula@intel.com> | 2019-03-05 16:52:15 +0300 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2019-03-08 14:25:31 +0300 |
commit | ab3517c1eb01cfd97df8c83435fe43329e0cfae3 (patch) | |
tree | c4a258d55a6218db0c9138c0cd2462230c0a9ab4 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 1b61c4a3eea2bead6725b6907616684497ff8765 (diff) | |
download | linux-ab3517c1eb01cfd97df8c83435fe43329e0cfae3.tar.xz |
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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions