]> git.baikalelectronics.ru Git - kernel.git/commit
clk: imx: pll14xx: explicitly return lowest rate
authorSascha Hauer <s.hauer@pengutronix.de>
Fri, 4 Mar 2022 12:52:54 +0000 (13:52 +0100)
committerAbel Vesa <abel.vesa@nxp.com>
Fri, 4 Mar 2022 15:06:30 +0000 (17:06 +0200)
commit25dc9d7e62a42c05893f2e8af4f33af1c6c9dded
tree242ddcc9801be75516fece36d5c61b2a717418e1
parent4877cf2b47ada3b3f6ebb084fab653f055ba7e7e
clk: imx: pll14xx: explicitly return lowest rate

clk_pll14xx_round_rate() returns the lowest rate by indexing into
the rate table with the variable i. i is actually pll->rate_count
as this is the value we come out of the loop with. Use pll->rate_count
explicitly to make it a bit more clear what is being done. While at
it fix a typo in the comment. No functional change.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Reviewed-by: Abel Vesa <abel.vesa@nxp.com>
Link: https://lore.kernel.org/r/20220304125256.2125023-7-s.hauer@pengutronix.de
Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
drivers/clk/imx/clk-pll14xx.c