]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/crc: move pipe_crc from drm_i915_private to intel_crtc
authorJani Nikula <jani.nikula@intel.com>
Thu, 27 Feb 2020 16:12:53 +0000 (18:12 +0200)
committerJani Nikula <jani.nikula@intel.com>
Mon, 2 Mar 2020 10:58:26 +0000 (12:58 +0200)
commit00535527350c1ab139ae31e0128d936d44b11004
tree40de8d7ccb88599c020376d6a753bbce69874c29
parent9a40bddd47ca4aa26d3b10bdaf51c35862a344ff
drm/i915/crc: move pipe_crc from drm_i915_private to intel_crtc

Having an array pipe_crc[I915_MAX_PIPES] in struct drm_i915_private
should be an obvious clue this should be located in struct intel_crtc
instead. Make it so.

As a side-effect, fix some errors in indexing pipe_crc with both pipe
and crtc index. And, of course, reduce the size of i915_drv.h.

Cc: Anshuman Gupta <anshuman.gupta@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-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/20200227161253.15741-1-jani.nikula@intel.com
drivers/gpu/drm/i915/display/intel_display.c
drivers/gpu/drm/i915/display/intel_display_types.h
drivers/gpu/drm/i915/display/intel_pipe_crc.c
drivers/gpu/drm/i915/display/intel_pipe_crc.h
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_irq.c