drm/imx: ipuv3-plane: merge ipu_plane_atomic_set_base into atomic_update
authorPhilipp Zabel <p.zabel@pengutronix.de>
Tue, 18 Oct 2016 09:40:25 +0000 (11:40 +0200)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 20 Oct 2016 12:39:53 +0000 (14:39 +0200)
commit3fd8b292ae6b99e3e6e96df3e470b25b100741a8
treec287c501e4ea1f93838f9e05e8883008ab18441a
parent181c9bfe4b37a36075c91b9e16ce8c99ed0d9b7b
drm/imx: ipuv3-plane: merge ipu_plane_atomic_set_base into atomic_update

ipu_plane_atomic_set_base is called from ipu_plane_atomic_update in two
different places, depending on whether drm_atomic_crtc_needs_modeset is
true. Also depending on the same condition, this function does two
different things.
This patch removes the indirection by merging the relevant parts into
ipu_plane_atomic_update, making the actual code flow more obvious as a
result. Also remove the duplicate planar format comment, which is
already found in ipu_plane_atomic_check.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Acked-by: Liu Ying <gnuiyl@gmail.com>
drivers/gpu/drm/imx/ipuv3-plane.c