diff options
author | 2022-03-04 13:52:54 +0100 | |
---|---|---|
committer | 2022-03-04 17:06:30 +0200 | |
commit | 5ff50031cb8852bfcf587d003ba6bad3c2336852 (patch) | |
tree | 242ddcc9801be75516fece36d5c61b2a717418e1 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | clk: imx: pll14xx: name variables after usage (diff) | |
download | wireguard-linux-5ff50031cb8852bfcf587d003ba6bad3c2336852.tar.xz wireguard-linux-5ff50031cb8852bfcf587d003ba6bad3c2336852.zip |
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 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions