ACPI: thinkpad-acpi: map ENXIO to EINVAL for fan sysfs
commitca4f6628764c4e0279af9fe1b58234a5f7faddc3
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, 28 Apr 2007 17:28:16 +0000 (28 14:28 -0300)
treec2c97c0ad1956db59b96a18cb4b5fb0822232064
parent632f8051b7a0a940112ecaaaab463c4a80a31bdc
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