]> www.infradead.org Git - users/dwmw2/linux.git/commit
phy: rockchip: samsung-hdptx: Avoid Hz<->hHz unit conversion overhead
authorCristian Ciocaltea <cristian.ciocaltea@collabora.com>
Tue, 18 Mar 2025 12:35:42 +0000 (14:35 +0200)
committerVinod Koul <vkoul@kernel.org>
Fri, 11 Apr 2025 11:48:04 +0000 (17:18 +0530)
commit0edf9d2bb9b4ba7566dfdc7605883e04575129d9
tree6cf01eae2ffc9fa255a4d897f112a7c3e1284b24
parentbacf2fe750dab6bc7ed50556aaadd3ab107fc643
phy: rockchip: samsung-hdptx: Avoid Hz<->hHz unit conversion overhead

The ropll_tmds_cfg table used to identify the configuration params for
the supported rates expects the search key, i.e. bit_rate member of
struct ropll_config, to be provided in hHz rather than Hz (1 hHz = 100
Hz).  This requires multiple conversions between these units being
performed at runtime.

Improve implementation clarity and efficiency by consistently using the
Hz unit throughout driver's internal data structures and functions.
Also rename the rather misleading struct member.

Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250318-phy-sam-hdptx-bpc-v6-8-8cb1678e7663@collabora.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c