From: Krystian Garbaciak Date: Thu, 12 Jul 2012 10:50:38 +0000 (+0100) Subject: regulator: Fix a typo in regulator_mode_to_status() core function. X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=03ffcf3d0838bd5e693cd4520becfb22577cf34d;p=linux-beck.git 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 --- 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;