]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/platform/x86/sony-laptop.c: fix scancodes
authorJohn Hughes <john@calvaedi.com>
Fri, 16 Dec 2011 04:49:30 +0000 (15:49 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 19 Dec 2011 07:19:15 +0000 (18:19 +1100)
commit72db611edf1586284e96e37a713e3b359c24ebf8
tree3e3d1410f23d3768a94af4fc4621072ac6f069a5
parentee88fc64e32ef3815aaa4d7daaf27766d20ad824
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