drm/rockchip: inno_hdmi: Remove tmds rate from structure
authorMaxime Ripard <mripard@kernel.org>
Fri, 22 Dec 2023 17:42:03 +0000 (18:42 +0100)
committerHeiko Stuebner <heiko@sntech.de>
Fri, 29 Dec 2023 23:33:21 +0000 (00:33 +0100)
commit5f92474844a4fcb7997da20dd1de2031aed1d794
tree56c03b7d0f6ff11828f3e7157e9bd8b6f2b9b158
parent139771b8239c43ad1bd6c2976aa12788096a5483
drm/rockchip: inno_hdmi: Remove tmds rate from structure

The tmds_rate field in the inno_hdmi structure is used mostly to
configure the internal i2c controller divider through a call to the
inno_hdmi_i2c_init() function.

We can simply make that rate an argument to that function, which also
removes a workaround to initialize the divider at probe time when we
don't have a mode yet.

Signed-off-by: Maxime Ripard <mripard@kernel.org>
Tested-by: Alex Bee <knaerzche@gmail.com>
Signed-off-by: Alex Bee <knaerzche@gmail.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20231222174220.55249-13-knaerzche@gmail.com
drivers/gpu/drm/rockchip/inno_hdmi.c