pm: remove callback from control function
The callback is not used anymore, so just delete it from the pm_control callback signature. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
217e610d8f
commit
26ad8376bd
50 changed files with 96 additions and 163 deletions
|
@ -362,8 +362,7 @@ struct device {
|
|||
#ifdef CONFIG_PM_DEVICE
|
||||
/** Power Management function */
|
||||
int (*pm_control)(const struct device *dev, uint32_t command,
|
||||
enum pm_device_state *state, pm_device_cb cb,
|
||||
void *arg);
|
||||
enum pm_device_state *state);
|
||||
/** Pointer to device instance power management data */
|
||||
struct pm_device * const pm;
|
||||
#endif
|
||||
|
|
|
@ -46,10 +46,8 @@ 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,
|
||||
enum pm_device_state *state, pm_device_cb cb,
|
||||
void *arg);
|
||||
extern int clock_device_ctrl(const struct device *dev, uint32_t ctrl_command,
|
||||
enum pm_device_state *state);
|
||||
|
||||
/**
|
||||
* @brief Set system clock timeout
|
||||
|
|
|
@ -67,10 +67,6 @@ enum pm_device_state {
|
|||
/** Device PM get state control command. */
|
||||
#define PM_DEVICE_STATE_GET 1
|
||||
|
||||
typedef void (*pm_device_cb)(const struct device *dev,
|
||||
int status, enum pm_device_state *state,
|
||||
void *arg);
|
||||
|
||||
/**
|
||||
* @brief Device PM info
|
||||
*/
|
||||
|
@ -114,15 +110,12 @@ const char *pm_device_state_str(enum pm_device_state state);
|
|||
* Note that devices may support just some of the device power states
|
||||
* @param dev Pointer to device structure of the driver instance.
|
||||
* @param device_power_state Device power state to be set
|
||||
* @param cb Callback function to notify device power status
|
||||
* @param arg Caller passed argument to callback function
|
||||
*
|
||||
* @retval 0 If successful in queuing the request or changing the state.
|
||||
* @retval Errno Negative errno code if failure. Callback will not be called.
|
||||
* @retval Errno Negative errno code if failure.
|
||||
*/
|
||||
int pm_device_state_set(const struct device *dev,
|
||||
enum pm_device_state device_power_state,
|
||||
pm_device_cb cb, void *arg);
|
||||
enum pm_device_state device_power_state);
|
||||
|
||||
/**
|
||||
* @brief Call the get power state function of a device
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue