Skip to content

Commit

Permalink
Kernel input lab: use input_report_key() instead of input_event()
Browse files Browse the repository at this point in the history
As recommended in the slides

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Reported-by: Miquèl Raynal <miquel.raynal@bootlin.com>
  • Loading branch information
michaelopdenacker authored and tpetazzoni committed Oct 29, 2021
1 parent 094b326 commit 13f7e82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions labs/kernel-i2c-input-interface/input-notification.c
@@ -1,3 +1,3 @@
input_event(input, EV_KEY, BTN_Z, zpressed);
input_event(input, EV_KEY, BTN_C, cpressed);
input_report_key(input, BTN_Z, zpressed);
input_report_key(input, BTN_C, cpressed);
input_sync(input);

0 comments on commit 13f7e82

Please sign in to comment.