drm: hdlcd: Cleanup the atomic plane operations
authorLiviu Dudau <Liviu.Dudau@arm.com>
Wed, 1 Jun 2016 14:00:15 +0000 (15:00 +0100)
committerLiviu Dudau <Liviu.Dudau@arm.com>
Thu, 2 Jun 2016 16:45:29 +0000 (17:45 +0100)
commit96ebb1f3ed4dca25c6f5d1868b0de61f9366612a
tree6fbf2d66455ae62f4f5afc4d67d060f700493c5e
parent38c8c22c12e99b70fc59ea7ef4d0bb24c11e5ddd
drm: hdlcd: Cleanup the atomic plane operations

Harden the plane_check() code to drop attempts at scaling because
that is not supported. Make hdlcd_plane_atomic_update() set the pitch
and line length registers that correctly reflect the plane's values.
And make hdlcd_crtc_mode_set_nofb() a helper function for
hdlcd_crtc_enable() rather than an exposed hook.

Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Liviu Dudau <Liviu.Dudau@arm.com>
drivers/gpu/drm/arm/hdlcd_crtc.c
drivers/gpu/drm/arm/hdlcd_drv.h