pm: device: remove pointer usage for state

Since the state is no longer modified by the device PM callback, just
use the state value.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
Gerard Marull-Paretas 2021-06-09 13:47:18 +02:00 committed by Anas Nashif
commit 11eef4d8c8
41 changed files with 100 additions and 100 deletions

View file

@ -409,13 +409,13 @@ int loapic_resume(const struct device *port)
*/
__pinned_func
static int loapic_device_ctrl(const struct device *port,
enum pm_device_state *state)
enum pm_device_state state)
{
int ret = 0;
if (*state == PM_DEVICE_STATE_SUSPEND) {
if (state == PM_DEVICE_STATE_SUSPEND) {
ret = loapic_suspend(port);
} else if (*state == PM_DEVICE_STATE_ACTIVE) {
} else if (state == PM_DEVICE_STATE_ACTIVE) {
ret = loapic_resume(port);
}