]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: ibm-acpi: extend fan status functions
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Fri, 24 Nov 2006 13:47:12 +0000 (11:47 -0200)
committerLen Brown <len.brown@intel.com>
Thu, 7 Dec 2006 06:38:40 +0000 (01:38 -0500)
commit07bc4cb628102ea17db26a24b15c4ec516cf46d7
treef78c682c4086591aae46c9c2d715dce40302f684
parent25fbcfe43f25eead135a070f357f8f7619d59d13
ACPI: ibm-acpi: extend fan status functions

This patch fixes fan_read to return correct values for all fan access
modes.  It also implements some fan access mode status output that was
missing, and normalizes the proc fan abi to return consistent data across
all fan read/write modes.

Userspace ABI changes and extensions:
1. Return status: enable/disable for *all* modes
   (this actually improves compatibility with userspace utils!)
2. Return level: auto and level: disengaged for EC 2f access mode
3. Return level: <number> for EC 0x2f access mode
4. Return level 0 as well as "disabled" in level-aware modes

Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
drivers/acpi/ibm_acpi.c