power: device: void *context -> uint32_t *state
The context parameter used across device power management is actually the power state. Just use it and avoid a lot of unnecessary casts. Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
9ac646f277
commit
7eba310220
30 changed files with 111 additions and 109 deletions
|
@ -78,7 +78,7 @@ struct device;
|
|||
#define PM_DEVICE_STATE_GET 2
|
||||
|
||||
typedef void (*pm_device_cb)(const struct device *dev,
|
||||
int status, void *context, void *arg);
|
||||
int status, uint32_t *state, void *arg);
|
||||
|
||||
/**
|
||||
* @brief Device PM info
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue