pm: rename PM_DEVICE_STATE_SUSPEND to PM_DEVICE_STATE_SUSPENDED
The verb tense for the suspended state was not consistent with other states. The likely reason: state was being used as a command/action. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
56a35e5682
commit
d41dadc569
32 changed files with 61 additions and 61 deletions
|
@ -180,7 +180,7 @@ static int arc_v2_irq_unit_device_ctrl(const struct device *dev,
|
|||
int ret = 0;
|
||||
unsigned int key = arch_irq_lock();
|
||||
|
||||
if (state == PM_DEVICE_STATE_SUSPEND) {
|
||||
if (state == PM_DEVICE_STATE_SUSPENDED) {
|
||||
ret = arc_v2_irq_unit_suspend(dev);
|
||||
} else if (state == PM_DEVICE_STATE_ACTIVE) {
|
||||
ret = arc_v2_irq_unit_resume(dev);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue