Changeset 4690
- Timestamp:
- 08/19/07 17:27:14 (1 year ago)
- Files:
-
- lm-sensors/trunk/lib/data.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
lm-sensors/trunk/lib/data.c
r4679 r4690 226 226 227 227 228 #define SENSORS_CHIP_NAME_BUS_IGNORE -42 229 228 230 int sensors_substitute_chip(sensors_chip_name *name,int lineno) 229 231 { … … 235 237 if (i == sensors_config_busses_count) { 236 238 sensors_parse_error("Undeclared i2c bus referenced",lineno); 237 name->bus = sensors_proc_bus_count;239 name->bus = SENSORS_CHIP_NAME_BUS_IGNORE; 238 240 return -SENSORS_ERR_BUS_NAME; 239 241 } … … 250 252 } 251 253 252 /* We did not find a nything. sensors_proc_bus_count is not a valid253 bus number, so it will never be matched. Good. */254 name->bus = sensors_proc_bus_count;254 /* We did not find a matching bus name, simply ignore this chip 255 config entry. */ 256 name->bus = SENSORS_CHIP_NAME_BUS_IGNORE; 255 257 return 0; 256 258 }
