- if (data->type == lm85b || data->type == lm85c) {
- data->tach_mode = lm85_read_value(client,
- LM85_REG_TACH_MODE);
- data->spinup_ctl = lm85_read_value(client,
- LM85_REG_SPINUP_CTL);
- } else if (data->type == adt7463 || data->type == adm1027) {
- if (data->type == adt7463) {
- for (i = 0; i <= 2; ++i) {
- data->oppoint[i] = lm85_read_value(client,
- ADT7463_REG_OPPOINT(i));
- }
- data->tmin_ctl = lm85_read_value(client,
- ADT7463_REG_TMIN_CTL1);
- data->therm_limit = lm85_read_value(client,
- ADT7463_REG_THERM_LIMIT);
- }
- for (i = 0; i <= 2; ++i) {
- data->temp_offset[i] = lm85_read_value(client,
- ADM1027_REG_TEMP_OFFSET(i));
- }
- data->tach_mode = lm85_read_value(client,
- ADM1027_REG_CONFIG3);
- data->fan_ppr = lm85_read_value(client,
- ADM1027_REG_FAN_PPR);
- }
-