From: Henrique de Moraes Holschuh Date: Sat, 28 Apr 2007 01:00:12 +0000 (-0300) Subject: ACPI: thinkpad-acpi: map ENXIO to EINVAL for fan sysfs X-Git-Tag: v2.6.22-rc1~1112^2~5^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c573ddb998456a89a5ccb83a922d2c8ba18484a6;p=pandora-kernel.git 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 Signed-off-by: Len Brown --- Reading git-diff-tree failed