ideapad: add event for Novo key
authorIke Panhc <ike.pan@canonical.com>
Mon, 5 Sep 2011 18:32:10 +0000 (02:32 +0800)
committerMatthew Garrett <mjg@redhat.com>
Mon, 24 Oct 2011 14:52:39 +0000 (16:52 +0200)
commitf43d9ec06028b8cb122a7a2b367a7af066342918
treeed704ae9d51905c7abf06a25a7eafa08b2facb18
parent923de84ab07cfcee75946191f17a6e7fb98e3ac8
ideapad: add event for Novo key

Novo key is the Lenovo define key on every ideapads, which has two
definition. Long press and short click. Driver will report
KEY_PROG1 on short click and KEY_PROG2 when long press.

On pre-install OS for ideapads there are application waiting for
the event and there is no such application for Linux yet, so I
think to report KEY_PROG is fine in anyway.

Also change the scancode from hex to decimal because they are
related to vpc bit in notify function which is in decimal.

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