Re: [PATCH] clk: bcm2835: fix bcm2835_clock_rate_from_divisor declaration

From: Ivan T. Ivanov
Date: Mon Sep 12 2022 - 11:33:35 EST


On 09-04 16:10, Stefan Wahren wrote:
> Date: Sun, 4 Sep 2022 16:10:37 +0200
> From: Stefan Wahren <stefan.wahren@xxxxxxxx>
> To: Michael Turquette <mturquette@xxxxxxxxxxxx>, Stephen Boyd
> <sboyd@xxxxxxxxxx>, Florian Fainelli <f.fainelli@xxxxxxxxx>, Ray Jui
> <rjui@xxxxxxxxxxxx>, Scott Branden <sbranden@xxxxxxxxxxxx>, Maxime Ripard
> <maxime@xxxxxxxxxx>
> Cc: linux-clk@xxxxxxxxxxxxxxx, linux-rpi-kernel@xxxxxxxxxxxxxxxxxxx,
> linux-arm-kernel@xxxxxxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, Stefan
> Wahren <stefan.wahren@xxxxxxxx>
> Subject: [PATCH] clk: bcm2835: fix bcm2835_clock_rate_from_divisor
> declaration
> Message-Id: <20220904141037.38816-1-stefan.wahren@xxxxxxxx>
>
> The return value of bcm2835_clock_rate_from_divisor is always unsigned
> and also all caller expect this. So fix the declaration accordingly.
>
> Fixes: 41691b8862e2 ("clk: bcm2835: Add support for programming the audio domain clocks")
> Signed-off-by: Stefan Wahren <stefan.wahren@xxxxxxxx>

Reviewed-by: Ivan T. Ivanov <iivanov@xxxxxxx>