Skip to content

Commit 36a8fc6

Browse files
pcercueidtor
authored andcommitted
Input: gpio-keys - remove extra call to input_sync
The input_sync() function is already called after the loop in gpio_keys_report_state(), so it does not need to be called after each iteration within gpio_keys_gpio_report_event(). Signed-off-by: Paul Cercueil <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 6484e75 commit 36a8fc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/input/keyboard/gpio_keys.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,6 @@ static void gpio_keys_gpio_report_event(struct gpio_button_data *bdata)
373373
} else {
374374
input_event(input, type, *bdata->code, state);
375375
}
376-
input_sync(input);
377376
}
378377

379378
static void gpio_keys_gpio_work_func(struct work_struct *work)
@@ -382,6 +381,7 @@ static void gpio_keys_gpio_work_func(struct work_struct *work)
382381
container_of(work, struct gpio_button_data, work.work);
383382

384383
gpio_keys_gpio_report_event(bdata);
384+
input_sync(bdata->input);
385385

386386
if (bdata->button->wakeup)
387387
pm_relax(bdata->input->dev.parent);

0 commit comments

Comments
 (0)