drm/rockchip: vop2: Drop unused if_dclk_rate variable
authorCristian Ciocaltea <cristian.ciocaltea@collabora.com>
Fri, 5 Jan 2024 17:40:06 +0000 (19:40 +0200)
committerHeiko Stuebner <heiko@sntech.de>
Fri, 5 Jan 2024 20:34:24 +0000 (21:34 +0100)
commit196da3f3f76a46905f7daab29c56974f1aba9a7a
tree9ba133c60303c0fd21ac56c89f5109e97254d8ef
parent38709af26c33e398c3292e96837ccfde41fd9e6b
drm/rockchip: vop2: Drop unused if_dclk_rate variable

Commit 5a028e8f062f ("drm/rockchip: vop2: Add support for rk3588")
introduced a variable which ended up being unused:

rockchip_drm_vop2.c:1688:23: warning: variable ‘if_dclk_rate’ set but not used [-Wunused-but-set-variable]

This has been initially used as part of a formula to compute the clock
dividers, but eventually it has been replaced by static values.

Drop the variable declaration and move its assignment to the comment
block, to serve as documentation of how the constants have been
generated.

Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20240105174007.98054-1-cristian.ciocaltea@collabora.com
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c