aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-mod.c
diff options
context:
space:
mode:
authorCristian Ciocaltea <[email protected]>2023-04-06 22:41:56 +0300
committerMark Brown <[email protected]>2023-04-11 13:24:55 +0100
commit6bb18339c6b54e0241344280fe4d14909db9356c (patch)
treee313398aadf859cf6d6f758d81a0df7ab05e4295 /lib/mpi/mpi-mod.c
parentd25016618c0845b2a0f9ae64d084a66efd39b03c (diff)
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 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions