drm/vc4: dsi: Use snprintf for the PHY clocks instead of an array
authorMaxime Ripard <maxime@cerno.tech>
Thu, 3 Dec 2020 13:25:38 +0000 (14:25 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Mon, 7 Dec 2020 09:33:22 +0000 (10:33 +0100)
commitdc0bf36401e891c853e0a25baeb4e0b4e6f3626d
tree874cc1565579d6d56257f544fd5123f0beaf4d1c
parente02d5c43f2fdf7d71935de16e8c91b2cd3139f71
drm/vc4: dsi: Use snprintf for the PHY clocks instead of an array

The DSI clocks setup function has been using an array to store the clock
name of either the DSI0 or DSI1 blocks, using the port ID to choose the
proper one.

Let's switch to an snprintf call to do the same thing and simplify the
array a bit.

Reviewed-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20201203132543.861591-4-maxime@cerno.tech
drivers/gpu/drm/vc4/vc4_dsi.c