pm: device: remove ctrl_command callback argument
The ctrl_command is not used anymore, so remove it from the callback signature. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
da0ff4ae46
commit
9e7d545bb4
42 changed files with 20 additions and 58 deletions
|
@ -384,7 +384,7 @@ struct device {
|
|||
const device_handle_t *const handles;
|
||||
#ifdef CONFIG_PM_DEVICE
|
||||
/** Power Management function */
|
||||
int (*pm_control)(const struct device *dev, uint32_t command,
|
||||
int (*pm_control)(const struct device *dev,
|
||||
enum pm_device_state *state);
|
||||
/** Pointer to device instance power management data */
|
||||
struct pm_device * const pm;
|
||||
|
|
|
@ -46,7 +46,7 @@ extern int sys_clock_driver_init(const struct device *dev);
|
|||
* management. It is a weak symbol that will be implemented as a noop
|
||||
* if undefined in the clock driver.
|
||||
*/
|
||||
extern int clock_device_ctrl(const struct device *dev, uint32_t ctrl_command,
|
||||
extern int clock_device_ctrl(const struct device *dev,
|
||||
enum pm_device_state *state);
|
||||
|
||||
/**
|
||||
|
|
|
@ -62,11 +62,6 @@ enum pm_device_state {
|
|||
PM_DEVICE_STATE_SUSPENDING,
|
||||
};
|
||||
|
||||
/** Device PM set state control command. */
|
||||
#define PM_DEVICE_STATE_SET 0
|
||||
/** Device PM get state control command. */
|
||||
#define PM_DEVICE_STATE_GET 1
|
||||
|
||||
/** @brief Device PM flags. */
|
||||
enum pm_device_flag {
|
||||
/** Indicate if the device is busy or not. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue