pm: rename device_set/get_power_state to pm_device_set/get
Make name consistent with other device PM APIs. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
1e50e08bca
commit
7988ab4a26
16 changed files with 57 additions and 67 deletions
|
@ -3489,8 +3489,8 @@ static void shutdown_uart(void)
|
|||
if (ictx.uart_on) {
|
||||
HL7800_IO_DBG_LOG("Power OFF the UART");
|
||||
uart_irq_rx_disable(ictx.mdm_ctx.uart_dev);
|
||||
rc = device_set_power_state(ictx.mdm_ctx.uart_dev,
|
||||
PM_DEVICE_OFF_STATE, NULL, NULL);
|
||||
rc = pm_device_state_set(ictx.mdm_ctx.uart_dev,
|
||||
PM_DEVICE_OFF_STATE, NULL, NULL);
|
||||
if (rc) {
|
||||
LOG_ERR("Error disabling UART peripheral (%d)", rc);
|
||||
}
|
||||
|
@ -3506,8 +3506,8 @@ static void power_on_uart(void)
|
|||
|
||||
if (!ictx.uart_on) {
|
||||
HL7800_IO_DBG_LOG("Power ON the UART");
|
||||
rc = device_set_power_state(ictx.mdm_ctx.uart_dev,
|
||||
PM_DEVICE_ACTIVE_STATE, NULL, NULL);
|
||||
rc = pm_device_state_set(ictx.mdm_ctx.uart_dev,
|
||||
PM_DEVICE_ACTIVE_STATE, NULL, NULL);
|
||||
if (rc) {
|
||||
LOG_ERR("Error enabling UART peripheral (%d)", rc);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue