On Wed, Feb 20, 2019 at 09:15:52AM +0100, Christian Hohnstaedt wrote:
> + TPS65218_REGULATOR("LS2", "regulator-ls2", TPS65218_LS_2,
> +REGULATOR_CURRENT, tps65218_ls23_ops, 0, 0, 0,
> +TPS65218_REG_ENABLE2, TPS65218_ENABLE2_LS2_EN,
> +
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
---
drivers/regulator/tps65218-regulator.c | 18 +-
1 file changed, 13
2 matches
Mail list logo