Lines Matching refs:lm80_read_value
137 static int lm80_read_value(struct i2c_client *client, u8 reg);
259 reg = (lm80_read_value(client, LM80_REG_FANDIV) & ~(3 << (2 * (nr + 1))))
455 if (lm80_read_value(client, LM80_REG_ALARM2) & 0xc0)
489 data->fan_min[0] = lm80_read_value(client, LM80_REG_FAN_MIN(1));
490 data->fan_min[1] = lm80_read_value(client, LM80_REG_FAN_MIN(2));
523 static int lm80_read_value(struct i2c_client *client, u8 reg)
559 lm80_read_value(client, LM80_REG_IN(i));
561 lm80_read_value(client, LM80_REG_IN_MIN(i));
563 lm80_read_value(client, LM80_REG_IN_MAX(i));
565 data->fan[0] = lm80_read_value(client, LM80_REG_FAN1);
567 lm80_read_value(client, LM80_REG_FAN_MIN(1));
568 data->fan[1] = lm80_read_value(client, LM80_REG_FAN2);
570 lm80_read_value(client, LM80_REG_FAN_MIN(2));
573 (lm80_read_value(client, LM80_REG_TEMP) << 8) |
574 (lm80_read_value(client, LM80_REG_RES) & 0xf0);
576 lm80_read_value(client, LM80_REG_TEMP_OS_MAX);
578 lm80_read_value(client, LM80_REG_TEMP_OS_HYST);
580 lm80_read_value(client, LM80_REG_TEMP_HOT_MAX);
582 lm80_read_value(client, LM80_REG_TEMP_HOT_HYST);
584 i = lm80_read_value(client, LM80_REG_FANDIV);
587 data->alarms = lm80_read_value(client, LM80_REG_ALARM1) +
588 (lm80_read_value(client, LM80_REG_ALARM2) << 8);