ACPI: thinkpad-acpi: fix hotkey_get_tablet_mode
commit6bff492ad2e9d88de6045791109471891fe9e57d
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Fri, 29 Feb 2008 04:08:33 +0000 (29 01:08 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Fri, 29 Feb 2008 04:08:33 +0000 (29 01:08 -0300)
treef8a73c04e7961989e690030c41929ebecbaf4c23
parentba59e483fdf60c40b73dc9d77acaf0e279b7546f
ACPI: thinkpad-acpi: fix hotkey_get_tablet_mode

I used the wrong return convention on hotkey_get_tablet_mode(), breaking a
lot of stuff.  Bad Henrique!

Fix it to return the status in the parameter-by-reference, and IO status on
the function return value. Duh.

Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Cc: Zdenek Kabelac <zdenek.kabelac@gmail.com>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: Lukas Hejtmanek <xhejtman@ics.muni.cz>
drivers/misc/thinkpad_acpi.c