From ae63690c602c922d922d40f16dabef5c64f57d6d Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Mon, 21 Nov 2005 20:07:02 +0000 Subject: [PATCH] Patch from Anton V. Staaf: "(...) I found what I think is a bug in the it87_fan_div setting code. (...) What was happening was that the check to make sure the third fan's divisor was either 2 or 8 was using the wrong member of the it87 data structure. This was causing the if to never fail and thus always force the divisor to 2." git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3200 7894878c-1315-0410-8ee3-d5d059ff63e0 --- kernel/chips/it87.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/chips/it87.c b/kernel/chips/it87.c index 97f04c6d..88a5a9d8 100644 --- a/kernel/chips/it87.c +++ b/kernel/chips/it87.c @@ -1019,7 +1019,7 @@ void it87_fan_div(struct i2c_client *client, int operation, int ctl_name, old = it87_read_value(client, IT87_REG_FAN_DIV); if (*nrels_mag >= 3) { data->fan_div[2] = DIV_TO_REG(results[2]); - if( data->fan[2]!=3 ) { + if (data->fan_div[2] != 3) { data->fan_div[2] = 1; old = (old & 0xbf); } else {