pm: use enum for device PM states
Move all PM_DEVICE_STATE_* definitions to an enum. The PM_DEVICE_STATE_SET and PM_DEVICE_STATE_GET definitions have been kept out of the enum since they do not represent any state. However, their name has not been changed since they will be removed soon. All drivers and tests have been adjusted accordingly. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
59d07b0247
commit
cc2f0e9c08
53 changed files with 214 additions and 231 deletions
|
@ -186,7 +186,7 @@ void eth_mcux_phy_stop(struct eth_context *context);
|
|||
|
||||
static int eth_mcux_device_pm_control(const struct device *dev,
|
||||
uint32_t command,
|
||||
uint32_t *state, pm_device_cb cb,
|
||||
enum pm_device_state *state, pm_device_cb cb,
|
||||
void *arg)
|
||||
{
|
||||
struct eth_context *eth_ctx = (struct eth_context *)dev->data;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue