Changeset 5429
- Timestamp:
- 11/24/08 18:28:25 (5 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/branches/lm-sensors-3.0.0/prog/detect/sensors-detect
r5428 r5429 3366 3366 my ($file, $addr) = @_; 3367 3367 return if i2c_smbus_read_byte_data($file, 0x58) != 0xac; 3368 return (3);3368 return 3; 3369 3369 } 3370 3370 … … 3388 3388 return if $reg == 0xa3 || $reg == 0x5c; 3389 3389 3390 return (6);3390 return 6; 3391 3391 } 3392 3392 … … 4189 4189 if ($vendor == 0x41) { # Analog Devices 4190 4190 return if i2c_smbus_read_byte_data($file, 0x3d) != 0x27; 4191 return (8);4192 } 4193 4194 return (7);4191 return 8; 4192 } 4193 4194 return 7; 4195 4195 } 4196 4196 … … 4218 4218 return if ($cfg & 0x80) != 0x00; 4219 4219 4220 return (7);4220 return 7; 4221 4221 } 4222 4222 … … 4378 4378 $reg = i2c_smbus_read_byte_data($file, 0x01); 4379 4379 return unless $reg == 0x00 or $reg == 0x80; 4380 return (6);4380 return 6; 4381 4381 } 4382 4382 … … 4390 4390 return unless i2c_smbus_read_byte_data($file, 0x00) == 0x25; 4391 4391 return unless (i2c_smbus_read_byte_data($file, 0x03) & 0x80) == 0x00; 4392 return (5);4392 return 5; 4393 4393 } 4394 4394 … … 4409 4409 return unless i2c_smbus_read_byte_data($file, 0x48) == $addr; 4410 4410 4411 return (7);4411 return 7; 4412 4412 } 4413 4413 … … 4434 4434 ($chip == 2 and $reg == 0xd0) or 4435 4435 ($chip == 3 and $reg == 0xd0); 4436 return (8);4436 return 8; 4437 4437 } 4438 4438 … … 4458 4458 return unless (i2c_smbus_read_byte_data($file, 0x3f) & 0xf0) == 0x20; 4459 4459 4460 return (8);4460 return 8; 4461 4461 } 4462 4462 … … 4471 4471 return unless ($reg == 0x41); 4472 4472 return unless (i2c_smbus_read_byte_data($file, 0x17) & 0xf0) == 0x40; 4473 return (8);4473 return 8; 4474 4474 } 4475 4475 … … 4629 4629 return unless i2c_smbus_read_byte_data($file, 0x58) == 0x90; 4630 4630 return if i2c_smbus_read_byte_data($file, 0x5b) != 0x12; 4631 return (7 + ($addr == 0x2d));4631 return 7 + ($addr == 0x2d); 4632 4632 } 4633 4633 … … 4690 4690 return if $chip == 5 and $id ne 'HRC'; # Heracles 4691 4691 4692 return (8);4692 return 8; 4693 4693 } 4694 4694 … … 4727 4727 and (i2c_smbus_read_byte_data($file, 0x58) & 0xEF) == 0; 4728 4728 4729 return (7);4729 return 7; 4730 4730 } 4731 4731 … … 4818 4818 || i2c_smbus_read_word_data($file, 0x09) == 0xffff 4819 4819 || i2c_smbus_read_word_data($file, 0x0a) == 0xffff; 4820 return (5);4820 return 5; 4821 4821 } 4822 4822
