regulator: tps65218: Add support for LS2
authorChristian Hohnstaedt <Christian.Hohnstaedt@wago.com>
Fri, 22 Feb 2019 08:38:54 +0000 (09:38 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 22 Feb 2019 15:16:18 +0000 (15:16 +0000)
commite5c8ba0635a81f90f51efd3d9a4c0c404e463d0f
tree0897ceae42b267efbba4835f9232407c729d7d58
parentbf1fc259e8a40b9eb059a161db0d6d3d6b8c94e4
regulator: tps65218: Add support for LS2

Re-use the "tps65218_pmic_*_current_limit()" functions of LS3
and calculate the different required bit-shift by counting the
trailing 0s in "struct regulator_desc.csel_mask"

Signed-off-by: Christian Hohnstaedt <Christian.Hohnstaedt@wago.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/tps65218-regulator.c
include/linux/mfd/tps65218.h