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
|
@ -318,7 +318,6 @@ static int pwm_nrfx_set_power_state(enum pm_device_state new_state,
|
|||
}
|
||||
|
||||
static int pwm_nrfx_pm_control(const struct device *dev,
|
||||
uint32_t ctrl_command,
|
||||
enum pm_device_state *state)
|
||||
{
|
||||
int err = 0;
|
||||
|
@ -334,10 +333,9 @@ static int pwm_nrfx_pm_control(const struct device *dev,
|
|||
|
||||
#define PWM_NRFX_PM_CONTROL(idx) \
|
||||
static int pwm_##idx##_nrfx_pm_control(const struct device *dev, \
|
||||
uint32_t ctrl_command, \
|
||||
enum pm_device_state *state) \
|
||||
{ \
|
||||
return pwm_nrfx_pm_control(dev, ctrl_command, state) \
|
||||
return pwm_nrfx_pm_control(dev, state) \
|
||||
}
|
||||
#else
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue