rpivid: Use clk_get_max_rate()
authorMaxime Ripard <maxime@cerno.tech>
Fri, 15 Apr 2022 13:26:07 +0000 (15:26 +0200)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Fri, 22 Apr 2022 09:17:27 +0000 (10:17 +0100)
commitba69dce89d41b0e8c38dbfd70ee34b66443635e5
treeb1d03f6c632e96af00f9739212a60aaba25ba2eb
parent4517b3f4dd0f66592f82e5d1de5358097b9b0a14
rpivid: Use clk_get_max_rate()

The driver was using clk_round_rate() to figure out the maximum clock
rate that was allowed for the HEVC clock.

Since we have a function to return it directly now, let's use it.

Signed-off-by: Maxime Ripard <maxime@cerno.tech>
drivers/staging/media/rpivid/rpivid_video.c