mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-01 13:20:30 +00:00
Don't read new but disabled in/temp inputs.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2565 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
bd3d250159
commit
0034d3760a
1 file changed
+2
-2
@@ -937,7 +937,7 @@ static void pc87360_update_client(struct i2c_client *client)
|
||||
pc87360_write_value(data, LD_IN, i,
|
||||
PC87365_REG_IN_STATUS,
|
||||
data->in_status[i]);
|
||||
if (data->in_status[i] & 0x81) {
|
||||
if ((data->in_status[i] & 0x81) == 0x81) {
|
||||
data->in[i] = pc87360_read_value(data, LD_IN,
|
||||
i, PC87365_REG_IN);
|
||||
}
|
||||
@@ -971,7 +971,7 @@ static void pc87360_update_client(struct i2c_client *client)
|
||||
pc87360_write_value(data, LD_TEMP, i,
|
||||
PC87365_REG_TEMP_STATUS,
|
||||
data->temp_status[i]);
|
||||
if (data->temp_status[i] & 0x81) {
|
||||
if ((data->temp_status[i] & 0x81) == 0x81) {
|
||||
data->temp[i] = pc87360_read_value(data,
|
||||
LD_TEMP, i,
|
||||
PC87365_REG_TEMP);
|
||||
|
||||
Reference in new issue
Block a user