sensor: qdec_nrfx: fix PM callback signature
The PM action callback had an incorrect signature, probably a leftover from the actions conversion. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
fab00d086e
commit
6869743e28
1 changed files with 3 additions and 1 deletions
|
@ -207,9 +207,11 @@ static int qdec_nrfx_init(const struct device *dev)
|
|||
}
|
||||
|
||||
#ifdef CONFIG_PM_DEVICE
|
||||
static int qdec_nrfx_pm_control(struct qdec_nrfx_data *data,
|
||||
static int qdec_nrfx_pm_control(const struct device *dev,
|
||||
enum pm_device_action action)
|
||||
{
|
||||
ARG_UNUSED(dev);
|
||||
|
||||
switch (action) {
|
||||
case PM_DEVICE_ACTION_RESUME:
|
||||
qdec_nrfx_gpio_ctrl(true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue