Skip to content

Commit 38bd485

Browse files
gmarullcfriedt
authored andcommitted
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 <[email protected]>
1 parent 18b0874 commit 38bd485

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/sensor/qdec_nrfx/qdec_nrfx.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,11 @@ static int qdec_nrfx_init(const struct device *dev)
207207
}
208208

209209
#ifdef CONFIG_PM_DEVICE
210-
static int qdec_nrfx_pm_control(struct qdec_nrfx_data *data,
210+
static int qdec_nrfx_pm_control(const struct device *dev,
211211
enum pm_device_action action)
212212
{
213+
ARG_UNUSED(dev);
214+
213215
switch (action) {
214216
case PM_DEVICE_ACTION_RESUME:
215217
qdec_nrfx_gpio_ctrl(true);

0 commit comments

Comments
 (0)