OSDN Git Service

drm/vc4: hdmi: Replace hardcoded value by define
authorMaxime Ripard <maxime@cerno.tech>
Thu, 26 Jan 2023 17:05:46 +0000 (18:05 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Thu, 16 Feb 2023 09:24:10 +0000 (10:24 +0100)
commit89a173dec1b8951696b324880448d781d45f13ca
treedc688c57ba420ce7931921e32dfb7f3c07f22df1
parentf56e0071a6fea6b416943d8736f3128c8b2abed2
drm/vc4: hdmi: Replace hardcoded value by define

The 120MHz value hardcoded in the call to max_t to compute the HSM rate
is defined in the driver as HSM_MIN_CLOCK_FREQ, let's switch to it so
that it's more readable.

Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://lore.kernel.org/r/20230126-rpi-display-fw-clk-cleanup-v1-1-d646ff6fb842@cerno.tech
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
drivers/gpu/drm/vc4/vc4_hdmi.c