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:
parent
9e7d545bb4
commit
11eef4d8c8
41 changed files with 100 additions and 100 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue