Skip to content

Commit 131913c

Browse files
Flavio Ceolinnashif
authored andcommitted
power: Fix function return in dummy policy
There was one case where the dummy policy was returning a wrong type in the function pm_policy_next_state. Signed-off-by: Flavio Ceolin <[email protected]>
1 parent 7fcf551 commit 131913c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/power/policy/policy_dummy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ struct pm_state_info pm_policy_next_state(int32_t ticks)
4242

4343
LOG_DBG("Selected power state: %u", pm_dummy_states[i].state);
4444

45-
return pm_dummy_states[i].state;
45+
return pm_dummy_states[i];
4646
} while (pm_dummy_states[i].state != cur_pm_state_info.state);
4747

4848
LOG_DBG("No suitable power state found!");

0 commit comments

Comments
 (0)