ACPI: thinkpad-acpi: fix brightness_set error paths
commit4273af8d08c823d5898a2b1c2d0f25b4a8b9eaee
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Tue, 30 Oct 2007 19:46:25 +0000 (30 17:46 -0200)
committerLen Brown <len.brown@intel.com>
Mon, 5 Nov 2007 18:07:11 +0000 (5 13:07 -0500)
tree822101a563cd5fc7b87ea98498ca9e10ae7f8a02
parentfc589a3ce5f38db6239c147da4f9172a25575ecc
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>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/misc/thinkpad_acpi.c