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)
commit0b01fd3d40fe6402e5fa3b491ef23109feb1aaa5
treeaac76b2252ebff7c8425676f92609f54d89dc500
parent5fe156f1cab4f340ddb6283c993912be77594016
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