thinkpad-acpi: avoid keymap pitfall
commitc556eedc001797517011d7e68a3be5dd437a2054
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 18 Sep 2010 00:53:41 +0000 (17 21:53 -0300)
committerAK <andi@firstfloor.org>
Thu, 31 Mar 2011 18:57:36 +0000 (31 11:57 -0700)
tree2337fcf611d35b972ac6cd1c47ad9912aa1b8ac4
parent41013dc84c7f72133d54a79c46c96bdf9c776191
thinkpad-acpi: avoid keymap pitfall

[ upstream commit fc6e756894b703952fd277a1f98a5d93e7ba847a ]

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>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
drivers/platform/x86/thinkpad_acpi.c