summaryrefslogtreecommitdiff
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
parente2c98eaf928a2a0ecaca1db9aa5dc56a36699d9f (diff)
downloadlinux-3.10-03ffcf3d0838bd5e693cd4520becfb22577cf34d.tar.gz
linux-3.10-03ffcf3d0838bd5e693cd4520becfb22577cf34d.tar.bz2
linux-3.10-03ffcf3d0838bd5e693cd4520becfb22577cf34d.zip
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>
-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 974276afd1f..4b136f8cb99 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;