]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: thinkpad-acpi: map ENXIO to EINVAL for fan sysfs
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 28 Apr 2007 01:00:12 +0000 (22:00 -0300)
committerLen Brown <len.brown@intel.com>
Sun, 29 Apr 2007 01:41:19 +0000 (21:41 -0400)
commitc0850596291ed0817841196ba87a609509fddb16
tree73a40208efc05e8243ec48788725f11251de4b70
parent9a5cc4ca6cb2c22f09c246a536b34f64e60ae16d
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>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/misc/thinkpad_acpi.c