]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
asus-laptop: log unknown keys
authorCorentin Chary <corentin.chary@gmail.com>
Thu, 15 Dec 2011 07:27:31 +0000 (08:27 +0100)
committerMatthew 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

index b7944f9038866f2e50ba3c84604e2e7dea7f55b0..3976cfac5ffea6dfaa12b80db0ce5361a3d1033e 100644 (file)
@@ -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)