diff options
author | Roel Kluin <12o3l@tiscali.nl> | 2008-02-04 18:24:56 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-02-07 01:17:21 -0500 |
commit | 547266e46cc0b35ce51bd1f37f261d831927431f (patch) | |
tree | 2a03155ffc7dc48b691ec053392a0f96380666da /drivers | |
parent | 1cee5cce9776d88778b6c00e3f72fffbcbec40d4 (diff) |
ACPI: thinkpad-acpi: second TP_EC_FAN_FULLSPEED should be TP_EC_FAN_AUTO
fix bug in safety net for TPEC fan control mode
eaa7571b2d1a08873e4bdd8e6db3431df61cd9ad
Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
Acked-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/misc/thinkpad_acpi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/thinkpad_acpi.c b/drivers/misc/thinkpad_acpi.c index 8ef0afc88693..7ba1acad5402 100644 --- a/drivers/misc/thinkpad_acpi.c +++ b/drivers/misc/thinkpad_acpi.c | |||
@@ -4790,7 +4790,7 @@ static int fan_set_level(int level) | |||
4790 | * or FULLSPEED mode bits and just ignore them */ | 4790 | * or FULLSPEED mode bits and just ignore them */ |
4791 | if (level & TP_EC_FAN_FULLSPEED) | 4791 | if (level & TP_EC_FAN_FULLSPEED) |
4792 | level |= 7; /* safety min speed 7 */ | 4792 | level |= 7; /* safety min speed 7 */ |
4793 | else if (level & TP_EC_FAN_FULLSPEED) | 4793 | else if (level & TP_EC_FAN_AUTO) |
4794 | level |= 4; /* safety min speed 4 */ | 4794 | level |= 4; /* safety min speed 4 */ |
4795 | 4795 | ||
4796 | if (!acpi_ec_write(fan_status_offset, level)) | 4796 | if (!acpi_ec_write(fan_status_offset, level)) |