Changeset 2659 for lm-sensors/trunk/kernel/chips/lm93.c
- Timestamp:
- 08/13/04 00:21:25 (9 years ago)
- Files:
-
- 1 modified
-
lm-sensors/trunk/kernel/chips/lm93.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/kernel/chips/lm93.c
r2653 r2659 1212 1212 1213 1213 /* insert the new mapping and write it out */ 1214 data->sf_tach_to_pwm = lm93_read_byte(client, 1215 LM93_REG_SF_TACH_TO_PWM); 1214 1216 data->sf_tach_to_pwm &= ~0x3 << nr * 2; 1215 1217 data->sf_tach_to_pwm |= results[0] << nr * 2; … … 1218 1220 1219 1221 /* insert the enable bit and write it out */ 1220 data->sfc2 &= ~1 << nr; 1221 data->sfc2 |= 1 << nr; 1222 data->sfc2 = lm93_read_byte(client, 1223 LM93_REG_SFC2); 1224 if (results[0]) 1225 data->sfc2 |= 1 << nr; 1226 else 1227 data->sfc2 &= ~1 << nr; 1222 1228 lm93_write_byte(client, LM93_REG_SFC2, 1223 1229 data->sfc2);
