commit | 3ef8a6096ca98d45a54999a97c7c8e14977d2e3e | [log] [tgz] |
---|---|---|
author | Henrique de Moraes Holschuh <hmh@hmh.eng.br> | Fri Nov 24 11:47:10 2006 -0200 |
committer | Len Brown <len.brown@intel.com> | Thu Dec 07 01:38:39 2006 -0500 |
tree | f1ebed3d60e21778a277759a0a3f5ff08938e058 | |
parent | 69ba91cbd6d79aa197adbdd10a44e71c84044b44 [diff] |
ACPI: ibm-acpi: clean up fan_read This patch cleans up fan_read so that it is much easier to read and extend. The patch fixes the userspace ABI to return "status: not supported" (like all other ibm-acpi functions) when neither fan status or fan control are possible. It also fixes the userspace ABI to return EIO if ACPI access to the EC fails, instead of returning "status: unreadable" or "speed: unreadable". Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>