ACPI: thinkpad-acpi: map ENXIO to EINVAL for fan sysfs
commitb01344349b99fa36ff90bbb58523eee04e23751a
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, 9 Sep 2007 02:15:00 +0000 (8 23:15 -0300)
treeba0f25115b54353a8b2df0e82f93e315bc2bff70
parent4b6f418e72844a35574ad242a971524cf635fc6f
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