drm/imx: ipuv3-plane: use drm_plane_helper_check_state, clipped coordinates
authorPhilipp Zabel <p.zabel@pengutronix.de>
Wed, 19 Oct 2016 08:50:26 +0000 (10:50 +0200)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Wed, 15 Mar 2017 14:28:26 +0000 (15:28 +0100)
commit03ee3da8ce8d51013e7952108bdb0cd4e973a7de
tree326ef77e5404ddbf51c7b47ffa7b24dc24db6956
parent9c233760a65cec0c98df7b62bc5185d8889e5fc7
drm/imx: ipuv3-plane: use drm_plane_helper_check_state, clipped coordinates

Use drm_plane_helper_check_state to clip raw user coordinates to crtc
bounds. This checks for full plane coverage and scaling already, so
we can drop some custom checks. Use the clipped coordinates everywhere.

Suggested-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/gpu/drm/imx/ipuv3-plane.c