drm/sun4i: backend: Move the coord function in the shared part
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Sun, 17 Dec 2017 16:34:26 +0000 (17:34 +0100)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 29 Jan 2018 13:02:38 +0000 (14:02 +0100)
commit098b338afef9a8d0f5346b1fe8e1c6c3226fa602
tree72f058ef01d02f155293150ddfd411df2678b86c
parentb8f1230dd3bf99a77b74ea87a57d45422a5981cf
drm/sun4i: backend: Move the coord function in the shared part

The function supposed to update a plane's coordinates is called in both
branches of our function. Let's move it out the if statement.

Acked-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Link: https://patchwork.freedesktop.org/patch/msgid/2cd57bcf13652109da7bd5bbe12fa1d29429f02f.1516617243.git-series.maxime.ripard@free-electrons.com
drivers/gpu/drm/sun4i/sun4i_layer.c