mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-11 16:40:16 +00:00
chg addr range to 2c-2e; fix fan min writes.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@958 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
4f01f7eb79
commit
f0df41dd97
1 file changed
+3
-2
+3
-2
@@ -48,7 +48,7 @@
|
||||
|
||||
/* Addresses to scan */
|
||||
static unsigned short normal_i2c[] = { SENSORS_I2C_END };
|
||||
static unsigned short normal_i2c_range[] = { 0x2c, 0x2f, SENSORS_I2C_END };
|
||||
static unsigned short normal_i2c_range[] = { 0x2c, 0x2e, SENSORS_I2C_END };
|
||||
static unsigned int normal_isa[] = { SENSORS_ISA_END };
|
||||
static unsigned int normal_isa_range[] = { SENSORS_ISA_END };
|
||||
|
||||
@@ -753,7 +753,8 @@ void lm87_fan(struct i2c_client *client, int operation, int ctl_name,
|
||||
data->fan_min[nr-1] = FAN_TO_REG(results[0],
|
||||
DIV_FROM_REG
|
||||
(data->fan_div[nr-1]));
|
||||
lm87_write_value(client, LM87_REG_FAN2_AIN2_LIMIT,
|
||||
lm87_write_value(client, (nr == 2) ?
|
||||
LM87_REG_FAN2_AIN2_LIMIT : LM87_REG_FAN1_AIN1_LIMIT,
|
||||
data->fan_min[nr-1]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user