ACPI: thinkpad-acpi: map ENXIO to EINVAL for fan sysfs
commita991e29f00078fd02d12b118acc0daee13cfe398
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>
Sun, 5 Aug 2007 14:44:46 +0000 (5 11:44 -0300)
tree8b662db5341f4ab66773f5583ba83d385940144e
parent3e323b5388d0b07b66c9077c0d9467631cfe1f75
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