drm/i915: Consolidate top-level .update_plane() handlers
authorMatt Roper <matthew.d.roper@intel.com>
Mon, 1 Dec 2014 23:40:16 +0000 (15:40 -0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sat, 6 Dec 2014 00:46:25 +0000 (01:46 +0100)
commitc59cb179aaf444931cf9c547a514e383da3d2526
tree38dd7450c92e4c80673a4ea73d755908fb41c3d4
parent38f3ce3af5742eb5a3e9b01997f5ab85109c5762
drm/i915: Consolidate top-level .update_plane() handlers

Our .update_plane() handlers do the same check/prepare/commit/cleanup
steps regardless of plane type.  Consolidate them all into a single
function that calls check/commit through a vtable.

Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_sprite.c