summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorCristian Ciocaltea <cristian.ciocaltea@collabora.com>2023-04-06 22:41:56 +0300
committerMark Brown <broonie@kernel.org>2023-04-11 15:24:55 +0300
commit6bb18339c6b54e0241344280fe4d14909db9356c (patch)
treee313398aadf859cf6d6f758d81a0df7ab05e4295 /tools/perf/scripts/python/export-to-sqlite.py
parentd25016618c0845b2a0f9ae64d084a66efd39b03c (diff)
downloadlinux-6bb18339c6b54e0241344280fe4d14909db9356c.tar.xz
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 <cristian.ciocaltea@collabora.com> Link: https://lore.kernel.org/r/20230406194158.963352-7-cristian.ciocaltea@collabora.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions