thinkpad-acpi: avoid keymap pitfall
commitee6e55182cfa8aab15a0b670c3803565af7b7bf5
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 3 Sep 2011 18:49:31 +0000 (3 15:49 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sun, 13 Nov 2011 17:12:35 +0000 (13 15:12 -0200)
tree47ee5ed5e511862c968a4b69167ca1d00ab5d511
parent513a09c0be390123c8debfca0e8fcd1e4ea221ad
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