]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Use drm_rect to store the pfit window pos/size
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 22 Apr 2020 16:19:14 +0000 (19:19 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 24 Apr 2020 14:28:37 +0000 (17:28 +0300)
commit35dd95b4ee19787d4dd321ea88dd72c9b87d9425
treeeaf7d1a7b5f947591122d6e97f7ef3fb468df68c
parenteac9c58539aa2db9e1173964025760fdea905656
drm/i915: Use drm_rect to store the pfit window pos/size

Make things a bit more abstract by replacing the pch_pfit.pos/size
raw register values with a drm_rect. Makes it slighly more convenient
to eg. compute the scaling factors.

v2: Use drm_rect_init()

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200422161917.17389-3-ville.syrjala@linux.intel.com
Reviewed-by: Manasi Navare <manasi.d.navare@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_panel.c