thinkpad-acpi: avoid keymap pitfall
commitc084ba66da145e8b237a89afa41d812e9ed112f8
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Fri, 27 May 2011 01:52:33 +0000 (26 22:52 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Fri, 27 May 2011 01:52:33 +0000 (26 22:52 -0300)
treeb85caab090f9d6f567a86cdc1b7ee02e9760ee72
parentec22550cdbb96dbe26fb25cadb4b8caed957822a
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