drm/vc4: hvs: Use switch statement to simplify vc4_hvs_get_fifo_from_output
authorMaxime Ripard <maxime@cerno.tech>
Fri, 17 Feb 2023 14:07:29 +0000 (15:07 +0100)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:34:54 +0000 (11:34 +0000)
commit8dd1cab23904607b641ca8084380a68762e149eb
tree8ede5567276c5ab10c5ed6e2ea4f1bd783ebd444
parent833f3e52d3a1cbb3a00edde41743d1dad75d897e
drm/vc4: hvs: Use switch statement to simplify vc4_hvs_get_fifo_from_output

Since we'll support BCM2712 soon, let's move the logic behind
vc4_hvs_get_fifo_from_output() to a switch to extend it more easily.

Signed-off-by: Maxime Ripard <maxime@cerno.tech>
drivers/gpu/drm/vc4/vc4_hvs.c