summaryrefslogtreecommitdiff
path: root/drivers/regulator
diff options
context:
space:
mode:
authorKrystian Garbaciak <krystian.garbaciak@diasemi.com>2012-07-12 11:50:38 +0100
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-07-12 18:19:20 +0100
commit03ffcf3d0838bd5e693cd4520becfb22577cf34d (patch)
tree92653f1e7cf620bc9a1c94729efdea35a6e94f94 /drivers/regulator
parente2c98eaf928a2a0ecaca1db9aa5dc56a36699d9f (diff)
regulator: Fix a typo in regulator_mode_to_status() core function.
Case REGULATOR_STATUS_STANDBY -> REGULATOR_MODE_STANDBY. Signed-off-by: Krystian Garbaciak <krystian.garbaciak@diasemi.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/regulator')
-rw-r--r--drivers/regulator/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c
index 974276afd1f0..4b136f8cb99f 100644
--- a/drivers/regulator/core.c
+++ b/drivers/regulator/core.c
@@ -2894,7 +2894,7 @@ int regulator_mode_to_status(unsigned int mode)
return REGULATOR_STATUS_NORMAL;
case REGULATOR_MODE_IDLE:
return REGULATOR_STATUS_IDLE;
- case REGULATOR_STATUS_STANDBY:
+ case REGULATOR_MODE_STANDBY:
return REGULATOR_STATUS_STANDBY;
default:
return 0;