mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-10 16:30:50 +00:00
Skip fan_div initialization for disabled fans. This is a
backport from Linux 2.6. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2949 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
506fee471d
commit
352655ff7d
1 file changed
+4
-2
@@ -665,8 +665,10 @@ int pc87360_detect(struct i2c_adapter *adapter, int address,
|
||||
|
||||
/* Fan clock dividers may be needed before any data is read */
|
||||
for (i = 0; i < data->fannr; i++) {
|
||||
data->fan_status[i] = pc87360_read_value(data, LD_FAN,
|
||||
NO_BANK, PC87360_REG_FAN_STATUS(i));
|
||||
if (FAN_CONFIG_MONITOR(data->fan_conf, i))
|
||||
data->fan_status[i] = pc87360_read_value(data,
|
||||
LD_FAN, NO_BANK,
|
||||
PC87360_REG_FAN_STATUS(i));
|
||||
}
|
||||
|
||||
if (init > 0) {
|
||||
|
||||
Reference in new issue
Block a user