clk_round_rate — adjust a rate to the exact rate a clock can provide
long clk_round_rate ( | struct clk * clk, |
unsigned long rate) ; |
This answers the question “if I were to pass rate
to clk_set_rate
,
what clock rate would I end up with?” without changing the hardware
in any way. In other words:
rate = clk_round_rate(clk, r);