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

@ -385,7 +385,7 @@ struct device {
#ifdef CONFIG_PM_DEVICE
/** Power Management function */
int (*pm_control)(const struct device *dev,
enum pm_device_state *state);
enum pm_device_state state);
/** Pointer to device instance power management data */
struct pm_device * const pm;
#endif

View file

@ -47,7 +47,7 @@ extern int sys_clock_driver_init(const struct device *dev);
* if undefined in the clock driver.
*/
extern int clock_device_ctrl(const struct device *dev,
enum pm_device_state *state);
enum pm_device_state state);
/**
* @brief Set system clock timeout