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
This commit is contained in:
Maxime Ripard 2022-02-22 17:40:38 +01:00
commit 595dcf4eb8
No known key found for this signature in database
GPG key ID: E3EF0D6F671851C5