mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
UPSTREAM: clk: rockchip: Mark rockchip_fractional_approximation static
Silence the sparse warning
clk/rockchip/clk.c:172:6: warning: symbol 'rockchip_fractional_approximation' was not declared. Should it be static?
Cc: Elaine Zhang <zhangqing@rock-chips.com>
Cc: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
(cherry picked from commit 1dfcfa721f)
Change-Id: I545f079ff61c6b65363442484cdedd9e01333160
This commit is contained in:
@@ -165,11 +165,9 @@ static int rockchip_clk_frac_notifier_cb(struct notifier_block *nb,
|
||||
* fractional divider must set that denominator is 20 times larger than
|
||||
* numerator to generate precise clock frequency.
|
||||
*/
|
||||
void rockchip_fractional_approximation(struct clk_hw *hw,
|
||||
unsigned long rate,
|
||||
unsigned long *parent_rate,
|
||||
unsigned long *m,
|
||||
unsigned long *n)
|
||||
static void rockchip_fractional_approximation(struct clk_hw *hw,
|
||||
unsigned long rate, unsigned long *parent_rate,
|
||||
unsigned long *m, unsigned long *n)
|
||||
{
|
||||
struct clk_fractional_divider *fd = to_clk_fd(hw);
|
||||
unsigned long p_rate, p_parent_rate;
|
||||
|
||||
Reference in New Issue
Block a user