ACPI: thinkpad-acpi: fix brightness_set error paths
commitb27a2a6395dbc277937827ac81c5c305b48f1a29
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 13 Oct 2007 10:43:47 +0000 (13 07:43 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Mon, 12 Nov 2007 11:00:01 +0000 (12 09:00 -0200)
tree98ebd19d27192addcd5c3431a4f50f40c2362639
parent8358837621ad5d957f6c596fb081903426999a9a
ACPI: thinkpad-acpi: fix brightness_set error paths

The code calling brightness_set() can't handle EINTR/ERESTARTSYS well, nor
is it checking brightness_set() return status properly.

Fix it.

Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
drivers/misc/thinkpad_acpi.c