From 03ffcf3d0838bd5e693cd4520becfb22577cf34d Mon Sep 17 00:00:00 2001 From: Krystian Garbaciak Date: Thu, 12 Jul 2012 11:50:38 +0100 Subject: [PATCH] regulator: Fix a typo in regulator_mode_to_status() core function. Case REGULATOR_STATUS_STANDBY -> REGULATOR_MODE_STANDBY. Signed-off-by: Krystian Garbaciak Signed-off-by: Mark Brown --- drivers/regulator/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;