ACPI: thinkpad-acpi: map ENXIO to EINVAL for fan sysfs
commitd8c72ba83080370894958fc8dce4fef18caca267
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>
Tue, 12 Jun 2007 14:53:59 +0000 (12 11:53 -0300)
treed61abefba8e997e63a33db40b01fc867d7677214
parent093ed3228ffc0d2a0409b3faf4676c9da5f794f3
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