ideapad: add hotkey support
authorIke Panhc <ike.pan@canonical.com>
Mon, 13 Dec 2010 10:00:38 +0000 (18:00 +0800)
committerMatthew Garrett <mjg@redhat.com>
Fri, 7 Jan 2011 22:03:46 +0000 (17:03 -0500)
commitf63409ae91ff94e2192dafbeb00c278ba299f80e
tree905c847ca636d8d15ae0fbfd4bde4d587c28ea12
parentc9f718d0c6b4cf8033aa0f5ac892d68ddfb865aa
ideapad: add hotkey support

Hotkey enabled by this patch:
  Fn+F3: Video mode switch
  Fn+F5: software rfkill for wifi

For some ideapad when push Fn+F3, hardware generates Super-P keys, those key
will not be enabled by this patch.

Thanks for Dave Hansen report the problem. If CONFIG_INPUT_SPARSEKMAP is not
set, when building, you will have error message:

  ERROR: "sparse_keymap_setup" [drivers/platform/x86/ideapad-laptop.ko] undefined!
  ERROR: "sparse_keymap_free" [drivers/platform/x86/ideapad-laptop.ko] undefined!
  ERROR: "sparse_keymap_report_event" [drivers/platform/x86/ideapad-laptop.ko] undefined!

To select INPUT_SPARSEKMAP solve this issue.

Ref: http://lkml.org/lkml/2010/12/2/340

Signed-off-by: Ike Panhc <ike.pan@canonical.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/Kconfig
drivers/platform/x86/ideapad-laptop.c