]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit83cfc936569725e9bfe4c4cb2016b309de405852
tree874cc1565579d6d56257f544fd5123f0beaf4d1c
parent9de53e00d1c4400f1465dbf003cb883f00369f10
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