pm: rename PM_DEVICE_GET/SET_POWER_STATE to PM_DEVICE_STATE_GET/SET
Adjust name to be consistent with device PM naming conventions. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
6633b05530
commit
56f1a8ce98
36 changed files with 72 additions and 72 deletions
|
@ -454,10 +454,10 @@ static int uart_npcx_pm_control(const struct device *dev, uint32_t ctrl_command,
|
|||
int ret = 0;
|
||||
|
||||
switch (ctrl_command) {
|
||||
case PM_DEVICE_SET_POWER_STATE:
|
||||
case PM_DEVICE_STATE_SET:
|
||||
ret = uart_npcx_set_power_state(dev, *((uint32_t *)context));
|
||||
break;
|
||||
case PM_DEVICE_GET_POWER_STATE:
|
||||
case PM_DEVICE_STATE_GET:
|
||||
ret = uart_npcx_get_power_state(dev, (uint32_t *)context);
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue