Lines Matching refs:lm78_read_value
136 static int lm78_read_value(struct lm78_data *data, u8 reg);
387 reg = lm78_read_value(data, LM78_REG_VID_FANDIV); in fan_div_store()
533 if (lm78_read_value(isa, LM78_REG_I2C_ADDR) != client->addr) in lm78_alias_detect()
535 if ((lm78_read_value(isa, LM78_REG_CHIPID) & 0xfe) != (chipid & 0xfe)) in lm78_alias_detect()
543 if (lm78_read_value(isa, i) != in lm78_alias_detect()
547 if (lm78_read_value(isa, LM78_REG_CONFIG) != in lm78_alias_detect()
551 if (lm78_read_value(isa, i) != in lm78_alias_detect()
678 static int lm78_read_value(struct lm78_data *data, u8 reg) in lm78_read_value() function
717 config = lm78_read_value(data, LM78_REG_CONFIG); in lm78_init_device()
724 data->fan_min[i] = lm78_read_value(data, in lm78_init_device()
745 lm78_read_value(data, LM78_REG_IN(i)); in lm78_update_device()
747 lm78_read_value(data, LM78_REG_IN_MIN(i)); in lm78_update_device()
749 lm78_read_value(data, LM78_REG_IN_MAX(i)); in lm78_update_device()
753 lm78_read_value(data, LM78_REG_FAN(i)); in lm78_update_device()
755 lm78_read_value(data, LM78_REG_FAN_MIN(i)); in lm78_update_device()
757 data->temp = lm78_read_value(data, LM78_REG_TEMP); in lm78_update_device()
759 lm78_read_value(data, LM78_REG_TEMP_OVER); in lm78_update_device()
761 lm78_read_value(data, LM78_REG_TEMP_HYST); in lm78_update_device()
762 i = lm78_read_value(data, LM78_REG_VID_FANDIV); in lm78_update_device()
766 (lm78_read_value(data, LM78_REG_CHIPID) & in lm78_update_device()
772 data->alarms = lm78_read_value(data, LM78_REG_ALARM1) + in lm78_update_device()
773 (lm78_read_value(data, LM78_REG_ALARM2) << 8); in lm78_update_device()
807 if (lm78_read_value(data, LM78_REG_CHIPID) & 0x80) { in lm78_isa_probe()