diff options
| author | Hugo Villeneuve <hvilleneuve@dimonoff.com> | 2026-04-17 10:53:32 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-05-11 17:20:18 +0200 |
| commit | d0001adcd1f838d97bc23a20375f60bb3304aa5c (patch) | |
| tree | 78d819508d8f0c3d9836d4b23d77464072c7ec60 /tools/perf/scripts/python | |
| parent | ffc3414d15c615bc0a46536343f917d8a5f14655 (diff) | |
serial: max310x: improve max310x_set_ref_clk() efficiency
The same basic code is duplicated for each of the four PLL multiplier
values, so simplify and streamline it. Doing so allows us to avoid
some unnecessary (fdiv * factor) multiplications for some fdiv values and
replace the second "if" statement with an "else if" and avoid a useless
comparison.
Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com>
Link: https://patch.msgid.link/20260417-max310x-2-v1-5-b424e105ecac@dimonoff.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
