pm: remove callback from control function

The callback is not used anymore, so just delete it from the pm_control
callback signature.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
Gerard Marull-Paretas 2021-06-04 12:30:35 +02:00 committed by Christopher Friedt
commit 26ad8376bd
50 changed files with 96 additions and 163 deletions

View file

@ -3505,7 +3505,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_STATE_OFF, NULL, NULL);
PM_DEVICE_STATE_OFF);
if (rc) {
LOG_ERR("Error disabling UART peripheral (%d)", rc);
}
@ -3522,7 +3522,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_STATE_ACTIVE, NULL, NULL);
PM_DEVICE_STATE_ACTIVE);
if (rc) {
LOG_ERR("Error enabling UART peripheral (%d)", rc);
}