mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-22 22:54:06 +00:00
20ea6adbf1
Build system: x86_64 Build-tested: bcm2708, bcm2709, bcm2710, bcm2711 Run-tested: bcm2708/RPiB+, bcm2709/RPi3B, bcm2710/RPi3B, bcm2711/RPi4B Signed-off-by: Marty Jones <mj8263788@gmail.com> Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
27 lines
901 B
Diff
27 lines
901 B
Diff
From 041b014362c7fdcf82972b738708f3d2c1aef23e Mon Sep 17 00:00:00 2001
|
|
From: Maxime Ripard <maxime@cerno.tech>
|
|
Date: Fri, 15 Apr 2022 15:26:07 +0200
|
|
Subject: [PATCH] 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 | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- a/drivers/staging/media/rpivid/rpivid_video.c
|
|
+++ b/drivers/staging/media/rpivid/rpivid_video.c
|
|
@@ -558,7 +558,7 @@ static int start_clock(struct rpivid_dev
|
|
long max_hevc_clock;
|
|
int rv;
|
|
|
|
- max_hevc_clock = clk_round_rate(dev->clock, ULONG_MAX);
|
|
+ max_hevc_clock = clk_get_max_rate(dev->clock);
|
|
|
|
rv = clk_set_min_rate(dev->clock, max_hevc_clock);
|
|
if (rv) {
|