Commit f2b40769 authored by Andrei.Stefanescu@microchip.com's avatar Andrei.Stefanescu@microchip.com Committed by Mark Brown

regulator: of: add support for parsing regulator-state-standby

Set the according constraints for PM_SUSPEND_STANDBY case.
Previously, only suspend to mem/disk were taken into
consideration.
Signed-off-by: default avatarAndrei Stefanescu <andrei.stefanescu@microchip.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 5279e96f
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#include "internal.h" #include "internal.h"
static const char *const regulator_states[PM_SUSPEND_MAX + 1] = { static const char *const regulator_states[PM_SUSPEND_MAX + 1] = {
[PM_SUSPEND_STANDBY] = "regulator-state-standby",
[PM_SUSPEND_MEM] = "regulator-state-mem", [PM_SUSPEND_MEM] = "regulator-state-mem",
[PM_SUSPEND_MAX] = "regulator-state-disk", [PM_SUSPEND_MAX] = "regulator-state-disk",
}; };
...@@ -181,9 +182,11 @@ static void of_get_regulation_constraints(struct device_node *np, ...@@ -181,9 +182,11 @@ static void of_get_regulation_constraints(struct device_node *np,
case PM_SUSPEND_MAX: case PM_SUSPEND_MAX:
suspend_state = &constraints->state_disk; suspend_state = &constraints->state_disk;
break; break;
case PM_SUSPEND_STANDBY:
suspend_state = &constraints->state_standby;
break;
case PM_SUSPEND_ON: case PM_SUSPEND_ON:
case PM_SUSPEND_TO_IDLE: case PM_SUSPEND_TO_IDLE:
case PM_SUSPEND_STANDBY:
default: default:
continue; continue;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment