OSDN Git Service

drm/vc4: hdmi: Move clock calculation into its own function
authorMaxime Ripard <maxime@cerno.tech>
Tue, 22 Feb 2022 16:40:38 +0000 (17:40 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Thu, 24 Mar 2022 12:44:00 +0000 (13:44 +0100)
commit595dcf4eb859d043de9919f50d44272304e75422
tree50a59e8bc4c2c709e325af7a31bf66daf2c14410
parentccbf364f329cd43c9b148a2613881a8890f97237
drm/vc4: hdmi: Move clock calculation into its own function

The code to compute our clock rate for a given setup will be called in
multiple places in the next patches, so let's create a separate function
for it.

Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Acked-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220222164042.403112-4-maxime@cerno.tech
drivers/gpu/drm/vc4/vc4_hdmi.c