Searched hist:"6 bb18339" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/regulator/ |
H A D | fan53555.c | 6bb18339 Thu Apr 06 14:41:56 CDT 2023 Cristian Ciocaltea <cristian.ciocaltea@collabora.com> 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>
|