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:
Carlo Caione 2022-01-21 13:59:31 +01:00 committed by Anas Nashif
commit 11f1dd2370
27 changed files with 168 additions and 168 deletions

View file

@ -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});
}