pm: device: Align state names with system states
Change device pm states to the same pattern used by system power management. Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
86a8ab5c2c
commit
0c607adb63
51 changed files with 258 additions and 258 deletions
|
@ -3490,7 +3490,7 @@ static void shutdown_uart(void)
|
|||
HL7800_IO_DBG_LOG("Power OFF the UART");
|
||||
uart_irq_rx_disable(ictx.mdm_ctx.uart_dev);
|
||||
rc = pm_device_state_set(ictx.mdm_ctx.uart_dev,
|
||||
PM_DEVICE_OFF_STATE, NULL, NULL);
|
||||
PM_DEVICE_STATE_OFF, NULL, NULL);
|
||||
if (rc) {
|
||||
LOG_ERR("Error disabling UART peripheral (%d)", rc);
|
||||
}
|
||||
|
@ -3507,7 +3507,7 @@ static void power_on_uart(void)
|
|||
if (!ictx.uart_on) {
|
||||
HL7800_IO_DBG_LOG("Power ON the UART");
|
||||
rc = pm_device_state_set(ictx.mdm_ctx.uart_dev,
|
||||
PM_DEVICE_ACTIVE_STATE, NULL, NULL);
|
||||
PM_DEVICE_STATE_ACTIVE, NULL, NULL);
|
||||
if (rc) {
|
||||
LOG_ERR("Error enabling UART peripheral (%d)", rc);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue