File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -456,7 +456,7 @@ static enum hrtimer_restart gpio_keys_irq_timer(struct hrtimer *t)
456
456
struct input_dev * input = bdata -> input ;
457
457
458
458
if (bdata -> key_pressed ) {
459
- input_event (input , EV_KEY , * bdata -> code , 0 );
459
+ input_report_key (input , * bdata -> code , 0 );
460
460
input_sync (input );
461
461
bdata -> key_pressed = false;
462
462
}
@@ -478,11 +478,11 @@ static irqreturn_t gpio_keys_irq_isr(int irq, void *dev_id)
478
478
if (bdata -> button -> wakeup )
479
479
pm_wakeup_event (bdata -> input -> dev .parent , 0 );
480
480
481
- input_event (input , EV_KEY , * bdata -> code , 1 );
481
+ input_report_key (input , * bdata -> code , 1 );
482
482
input_sync (input );
483
483
484
484
if (!bdata -> release_delay ) {
485
- input_event (input , EV_KEY , * bdata -> code , 0 );
485
+ input_report_key (input , * bdata -> code , 0 );
486
486
input_sync (input );
487
487
goto out ;
488
488
}
You can’t perform that action at this time.
0 commit comments