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
|
@ -442,7 +442,7 @@ static inline int uart_npcx_set_power_state(const struct device *dev,
|
|||
enum pm_device_state next_state)
|
||||
{
|
||||
/* If next device power state is LOW or SUSPEND power state */
|
||||
if (next_state == PM_DEVICE_STATE_SUSPEND) {
|
||||
if (next_state == PM_DEVICE_STATE_SUSPENDED) {
|
||||
/*
|
||||
* If uart device is busy with transmitting, the driver will
|
||||
* stay in while loop and wait for the transaction is completed.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue