drm/i915: add INTEL_NUM_PIPES() and use it
authorJani Nikula <jani.nikula@intel.com>
Wed, 11 Sep 2019 09:26:08 +0000 (12:26 +0300)
committerJani Nikula <jani.nikula@intel.com>
Wed, 11 Sep 2019 19:33:20 +0000 (22:33 +0300)
commit249778704c01384d76984d83e6d6377ac96b2cc4
tree33198485b5def026b6a311b228f29b1ffcb8de06
parent023a125d1dded8e1c21bd9974373b697544ba18d
drm/i915: add INTEL_NUM_PIPES() and use it

Abstract away direct access to ->num_pipes to allow further
refactoring. No functional changes.

Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: José Roberto de Souza <jose.souza@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Acked-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190911092608.13009-1-jani.nikula@intel.com
drivers/gpu/drm/i915/display/intel_display.c
drivers/gpu/drm/i915/display/intel_display.h
drivers/gpu/drm/i915/display/intel_lpe_audio.c
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_pm.c