pm: Reference pm_state_info only by pointer
It's unnecessary to move the pm_state_info around by value, just use a pointer. Signed-off-by: Carlo Caione <ccaione@baylibre.com>
This commit is contained in:
parent
caa3ee686a
commit
11f1dd2370
27 changed files with 168 additions and 168 deletions
|
@ -118,5 +118,5 @@ void main(void)
|
|||
|
||||
printk("Device shutdown\n");
|
||||
|
||||
pm_power_state_force(0u, (struct pm_state_info){PM_STATE_SOFT_OFF, 0, 0});
|
||||
pm_power_state_force(0u, &(struct pm_state_info){PM_STATE_SOFT_OFF, 0, 0});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue