]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Aug 2018 05:47:49 +0000 (07:47 +0200)
commit02e9f887677c1f4449ebb9c9dc24e09ae2811cb4
tree134e375b0a70ac4517e13688cdf8eb3ea416256f
parent3a3209375ff2fcb72682d061c38bd03c5abdb863
regulator: pfuze100: add .is_enable() for pfuze100_swb_regulator_ops

[ Upstream commit 0b01fd3d40fe6402e5fa3b491ef23109feb1aaa5 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/regulator/pfuze100-regulator.c