thinkpad-acpi: avoid keymap pitfall
commit5db54cf6e1e77227a866a1cf3f01340ce4d0aa7b
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 18 Sep 2010 01:03:32 +0000 (17 22:03 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 18 Sep 2010 01:03:32 +0000 (17 22:03 -0300)
tree5180f796d1601cdecfcab921ebeec8f21f855f7c
parent25d1a72e1234ee00b9624e7d0e32c01b50ce5eba
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