]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit42d8e770200ae077abb1fc69ee61c64584d4b258
treec287c501e4ea1f93838f9e05e8883008ab18441a
parentba3935e6e1848f637a7e613b94ea62314a175e13
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