]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3291539071d4d265f8c8a5bfef0c68261ccfd5ae
tree7a9182c80006baa047fac9827a6fa9ff48cc2576
parent3a8764cc913e6f92cd1fb5418ac59fda5cf4c77d
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