thinkpad-acpi: avoid keymap pitfall
commita9849216580f952444a1b4b132985b352d916ac2
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Fri, 27 May 2011 01:51:12 +0000 (26 22:51 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Fri, 27 May 2011 01:51:12 +0000 (26 22:51 -0300)
tree276be4a3a92ab8fb5bbf0f6990b748690bf8b6b4
parentf5b29718c752dec9b938ce633efc2e56c9b318ee
thinkpad-acpi: avoid keymap pitfall

Change the code so that it will use the correct size for keymap entries.
Do it in a way that makes it harder to screw it up in the future.

Reported-by: Jaime Velasco Juan <jsagarribay@gmail.com>
Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
drivers/platform/x86/thinkpad_acpi.c