drm/vc4: kms: Convert to for_each_new_crtc_state
authorMaxime Ripard <maxime@cerno.tech>
Thu, 3 Sep 2020 08:00:45 +0000 (10:00 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Mon, 7 Sep 2020 16:02:47 +0000 (18:02 +0200)
commit596356678fb429cc181c30971b5cb6c4244b58ad
tree229c24bdc296f857013cd5a1e07985f79dd493cb
parenta5c4b75f1ea00f18e2b47c46df705dab22137a3e
drm/vc4: kms: Convert to for_each_new_crtc_state

The vc4 atomic commit loop has an handrolled loop that is basically
identical to for_each_new_crtc_state, let's convert it to that helper.

Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Tested-by: Chanwoo Choi <cw00.choi@samsung.com>
Tested-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Tested-by: Stefan Wahren <stefan.wahren@i2se.com>
Reviewed-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Link: https://patchwork.freedesktop.org/patch/msgid/a712d2b70aaee20379cfc52c2141aa2f6e2a9d5b.1599120059.git-series.maxime@cerno.tech
drivers/gpu/drm/vc4/vc4_kms.c