]> www.infradead.org Git - users/dwmw2/linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 21 Aug 2022 13:15:42 +0000 (15:15 +0200)
commit79374da862857adb0c034dd938276eeab77a3f49
tree95868e521479f2a66b701c4744ed6d5c2b906008
parent1f98187a7c155d7a92ab576ac5e5d8012f4450f0
drm/vc4: dsi: Use snprintf for the PHY clocks instead of an array

[ Upstream commit dc0bf36401e891c853e0a25baeb4e0b4e6f3626d ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/vc4/vc4_dsi.c