drm/vc4: hvs: Store channel in variable
authorMaxime Ripard <maxime@cerno.tech>
Thu, 31 Mar 2022 14:37:40 +0000 (16:37 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Wed, 6 Apr 2022 13:18:01 +0000 (15:18 +0200)
commite418639d19f5f3d4dbc541fd3d40f921f202d356
tree7a9182c80006baa047fac9827a6fa9ff48cc2576
parentb51cd7ad143d2eb31a6df81c2183128920e47c2b
drm/vc4: hvs: Store channel in variable

The assigned_channel field of our vc4_crtc_state structure is accessed
multiple times in vc4_hvs_atomic_flush, so let's move it to a variable
that can be used in all those places.

Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://lore.kernel.org/r/20220331143744.777652-4-maxime@cerno.tech
drivers/gpu/drm/vc4/vc4_hvs.c