]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/platform/x86/sony-laptop.c: fix scancodes
authorJohn Hughes <john@calvaedi.com>
Fri, 2 Dec 2011 03:06:58 +0000 (14:06 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 7 Dec 2011 05:32:33 +0000 (16:32 +1100)
commitc174da4e360a48364e07c883e7fa38f17742d090
tree64af6216fec5b4e6c17da8ef8c67bc5c5eb2285a
parent24b3e0792860e828a02bc6096bde6c3c5e01eb4c
drivers/platform/x86/sony-laptop.c: fix scancodes

The scancodes returned by the sony-laptop driver for function keys did not
match the scancodes used to remap keys.  Also, since the scancode was sent
to the input subsystem after the mapped keysym the /lib/udev/keymap
utility was confused about which scancode to report for which keysym.

This patch fixes the driver so the correct scancode is shown for each key.
 It also adds to the documentation a description of where to find the
scancodes.

Before the patch FN/E returned scancode 0x1B, but to remap scancode 0x14
had to be used.

Signed-off-by: John Hughes <john@calva.com>
Cc: Mattia Dongili <malattia@linux.it>
Cc: Matthew Garrett <mjg@redhat.com>
Acked-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Documentation/laptops/sony-laptop.txt
drivers/platform/x86/sony-laptop.c