Changeset 3204
- Timestamp:
- 12/09/05 20:29:01 (7 years ago)
- Files:
-
- 1 modified
-
lm-sensors/trunk/kernel/chips/w83627hf.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/kernel/chips/w83627hf.c
r3186 r3204 818 818 /* Make sure the pins are configured for input 819 819 There must be at least five (VRM 9), and possibly 6 (VRM 10) */ 820 sel = superio_inb(W83627THF_GPIO5_IOSR) ;820 sel = superio_inb(W83627THF_GPIO5_IOSR) & 0x3f; 821 821 if ((sel & 0x1f) != 0x1f) { 822 822 #ifdef DEBUG … … 888 888 data->vid = (lo & 0x0f) | ((hi & 0x01) << 4); 889 889 } else if (w83627thf == data->type) { 890 data->vid = w83627thf_read_gpio5(client) & 0x3f;890 data->vid = w83627thf_read_gpio5(client); 891 891 } 892 892 … … 1185 1185 *nrels_mag = 3; 1186 1186 else if (operation == SENSORS_PROC_REAL_READ) { 1187 w83627hf_update_client(client); 1188 results[0] = vid_from_reg(data->vid, data->vrm); 1187 if (data->vid == 0xff) 1188 results[0] = 0; 1189 else 1190 results[0] = vid_from_reg(data->vid, data->vrm); 1189 1191 *nrels_mag = 1; 1190 1192 }
