diff options
| author | Cristian Ciocaltea <[email protected]> | 2023-04-06 19:41:56 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2023-04-11 12:24:55 +0000 |
| commit | 6bb18339c6b54e0241344280fe4d14909db9356c (patch) | |
| tree | e313398aadf859cf6d6f758d81a0df7ab05e4295 /tools/perf/scripts/python | |
| parent | regulator: fan53555: Make use of the bit macros (diff) | |
| download | kernel-6bb18339c6b54e0241344280fe4d14909db9356c.tar.gz kernel-6bb18339c6b54e0241344280fe4d14909db9356c.zip | |
regulator: fan53555: Improve vsel_mask computation
In preparation for introducing support for additional regulators which
do not use the maximum number of voltage selectors available for a given
mask, improve the mask computation formula by using fls().
Note fls() requires the bitops header, hence include it explicitly and
drop bits.h which is already pulled by bitops.h.
Signed-off-by: Cristian Ciocaltea <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
