]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfb1e2bdca45252ef853923196f6ea74712c32371
tree0897ceae42b267efbba4835f9232407c729d7d58
parentf8f9327292d49472950d1cbc020cad1870de7265
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