drm/i915: Add plane .{min,max}_width() and .max_height() vfuncs
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 24 Sep 2020 18:51:13 +0000 (21:51 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 10 Nov 2020 18:37:38 +0000 (20:37 +0200)
commit230edf78ed4b96224802a9b2bfde4bc9996f84a2
treeebf7519ae78e1dc276c39c53352e9c7164a99f1d
parent1ba1014db2586bdfe0a9680a00613e2089586c46
drm/i915: Add plane .{min,max}_width() and .max_height() vfuncs

Reduce this maintenance nightmare a bit by converting the plane
min/max width/height stuff into vfuncs.

Now, if I could just think of a nice way to also use this for
intel_mode_valid_max_plane_size()...

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200924185113.30849-1-ville.syrjala@linux.intel.com
Reviewed-by: Aditya Swarup <aditya.swarup@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_sprite.c