]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - drivers/regulator/max77802.c
regulator: max77802: Don't treat OFF as an operating mode
authorJavier Martinez Canillas <javier.martinez@collabora.co.uk>
Thu, 16 Oct 2014 16:48:49 +0000 (18:48 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 20 Oct 2014 11:23:50 +0000 (12:23 +0100)
commit0505be71490e49044314ca84dd443e0f3782ca5a
tree8236f98bb3b09def1af1ba7ec78a3eada332a778
parent2e0eaa1aa0084ff1ee1af7cf388358b868143816
regulator: max77802: Don't treat OFF as an operating mode

The only operating modes that are supported by the regulators in the
max77802 PMIC are Output ON (normal) and Output On in Low Power Mode.
OFF was wrongly counted as an operating mode while is only a regulator
status. Make clear in the code that OFF is not an operating mode.

Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/max77802.c