diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2022-03-04 13:52:54 +0100 |
---|---|---|
committer | Abel Vesa <abel.vesa@nxp.com> | 2022-03-04 17:06:30 +0200 |
commit | 5ff50031cb8852bfcf587d003ba6bad3c2336852 (patch) | |
tree | 242ddcc9801be75516fece36d5c61b2a717418e1 /lib/mpi/mpi-mod.c | |
parent | 052d03a043afebb8e26ec17de52e8cdc8b217ef9 (diff) |
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>
Diffstat (limited to 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions