Skip to content

Commit ba69dce

Browse files
mripardpelwell
authored andcommitted
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 <[email protected]>
1 parent 4517b3f commit ba69dce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/staging/media/rpivid/rpivid_video.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ static int start_clock(struct rpivid_dev *dev, struct rpivid_ctx *ctx)
558558
long max_hevc_clock;
559559
int rv;
560560

561-
max_hevc_clock = clk_round_rate(dev->clock, ULONG_MAX);
561+
max_hevc_clock = clk_get_max_rate(dev->clock);
562562

563563
rv = clk_set_min_rate(dev->clock, max_hevc_clock);
564564
if (rv) {

0 commit comments

Comments
 (0)