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:
Gerard Marull-Paretas 2021-10-25 10:17:12 +02:00 committed by Maureen Helm
commit 6869743e28

View file

@ -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);