ACPI: thinkpad-acpi: map ENXIO to EINVAL for fan sysfs
commit0d18da3de31d489383a56032c07adfa3041a1497
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Thu, 26 Apr 2007 12:17:20 +0000 (26 09:17 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 7 Jul 2007 12:42:40 +0000 (7 09:42 -0300)
tree67a91a59401fe63457c05831fe8f24ab211a2aa3
parent1c472bb5fab647fde97c7807ca2969b67476c6b8
ACPI: thinkpad-acpi: map ENXIO to EINVAL for fan sysfs

Currently, all fan control operations return ENXIO if unsupported
operations are requested, but return EINVAL if invalid fan modes are
requested on a given ThinkPad.

This is not strictly correct for sysfs, so map ENXIO to EINVAL in the sysfs
attribute store handlers, as we do benefit from the ENXIO in other parts of
the driver code.

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