]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: leave one item to record whether regulator is enabled
authorChunyan Zhang <zhang.chunyan@linaro.org>
Fri, 26 Jan 2018 13:08:45 +0000 (21:08 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 26 Jan 2018 14:43:46 +0000 (14:43 +0000)
commitb36eeaa6f6ad20ced50a27f9ddeb43f00d0c2f4f
tree4859acc5ba19cd5f438c9c4b931e74f9c9b9c0c4
parent62e1bde9641532d6a78cac3766d74b426b216eb5
regulator: leave one item to record whether regulator is enabled

The items "disabled" and "enabled" are a little redundant, since only one
of them would be set to record if the regulator device should keep on
or be switched to off in suspend states.

So in this patch, the "disabled" was removed, only leave the "enabled":
  - enabled == 1 for regulator-on-in-suspend
  - enabled == 0 for regulator-off-in-suspend
  - enabled == -1 means do nothing when entering suspend mode.

Signed-off-by: Chunyan Zhang <zhang.chunyan@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c
drivers/regulator/of_regulator.c
include/linux/regulator/machine.h