]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: pfuze100: add .is_enable() for pfuze100_swb_regulator_ops
authorAnson Huang <Anson.Huang@nxp.com>
Thu, 17 May 2018 07:27:22 +0000 (15:27 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 17 May 2018 17:12:08 +0000 (18:12 +0100)
commit0fd7ff9335556254c141968a8cfaa1e1929e92dd
treeaac76b2252ebff7c8425676f92609f54d89dc500
parent14afb204bc1424cb08bf4500309d5b345c48fa54
regulator: pfuze100: add .is_enable() for pfuze100_swb_regulator_ops

If is_enabled() is not defined, regulator core will assume
this regulator is already enabled, then it can NOT be really
enabled after disabled.

Based on Li Jun's patch from the NXP kernel tree.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/pfuze100-regulator.c