Changeset 2287 for lm-sensors/trunk/kernel/chips/vt1211.c
- Timestamp:
- 02/12/04 22:55:34 (9 years ago)
- Files:
-
- 1 modified
-
lm-sensors/trunk/kernel/chips/vt1211.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/kernel/chips/vt1211.c
r2286 r2287 780 780 *nrels_mag = 0; 781 781 else if (operation == SENSORS_PROC_REAL_READ) { 782 results[0] = data->uch_config ;782 results[0] = data->uch_config & 0x7c; 783 783 *nrels_mag = 1; 784 784 } else if (operation == SENSORS_PROC_REAL_WRITE) { 785 785 if (*nrels_mag >= 1) { 786 data->uch_config = results[0] & 0x7c;786 data->uch_config = (data->uch_config & 0x83)|(results[0] & 0x7c); 787 787 vt1211_write_value(client, VT1211_REG_UCH_CONFIG, 788 results[0] & 0x7c);788 data->uch_config); 789 789 } 790 790 }
