regulator: Fix a typo in regulator_mode_to_status() core function.
authorKrystian Garbaciak <krystian.garbaciak@diasemi.com>
Thu, 12 Jul 2012 10:50:38 +0000 (11:50 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 12 Jul 2012 17:19:20 +0000 (18:19 +0100)
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>
drivers/regulator/core.c

index 974276afd1f0672707f332941da72a31b96b8dbd..4b136f8cb99fc2e555db41530887ee5d1a2f9e94 100644 (file)
@@ -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;