projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eecc5bb
)
asus-laptop: log unknown keys
author
Corentin Chary
<corentin.chary@gmail.com>
Thu, 15 Dec 2011 07:27:31 +0000
(08:27 +0100)
committer
Matthew Garrett
<mjg@redhat.com>
Tue, 20 Mar 2012 16:02:14 +0000
(12:02 -0400)
Signed-off-by: Corentin Chary <corentin.chary@gmail.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/asus-laptop.c
patch
|
blob
|
history
diff --git
a/drivers/platform/x86/asus-laptop.c
b/drivers/platform/x86/asus-laptop.c
index b7944f9038866f2e50ba3c84604e2e7dea7f55b0..3976cfac5ffea6dfaa12b80db0ce5361a3d1033e 100644
(file)
--- a/
drivers/platform/x86/asus-laptop.c
+++ b/
drivers/platform/x86/asus-laptop.c
@@
-1364,8
+1364,10
@@
err_btrfk:
*/
static void asus_input_notify(struct asus_laptop *asus, int event)
{
- if (asus->inputdev)
- sparse_keymap_report_event(asus->inputdev, event, 1, true);
+ if (!asus->inputdev)
+ return ;
+ if (!sparse_keymap_report_event(asus->inputdev, event, 1, true))
+ pr_info("Unknown key %x pressed\n", event);
}
static int asus_input_init(struct asus_laptop *asus)