Changeset 4610
- Timestamp:
- 07/14/07 18:29:52 (6 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/branches/lm-sensors-3.0.0/prog/detect/sensors-detect
r4604 r4610 736 736 # driver: The driver name (without .o extension). Put in exactly 737 737 # "to-be-written" if it is not yet available. Put in exactly 738 # "not-a-sensor" if it is not a hardware monitoring chip and 739 # there is no known driver for it. 738 # "not-a-sensor" if it is not a hardware monitoring chip. 740 739 # Put in exactly "use-isa-instead" if no i2c driver will be written. 741 740 # i2c_addrs (optional): For I2C chips, the range of valid I2C addresses to … … 3113 3112 printf("\%-60s", sprintf("Probing for `\%s'... ", $chip->{name})); 3114 3113 if (($conf,@chips) = &{$chip->{i2c_detect}} (\*FILE ,$addr)) { 3115 print "Success!\n", 3116 " (confidence $conf, driver `$chip->{driver}')"; 3114 if ($chip->{driver} eq "not-a-sensor") { 3115 print "Yes\n", 3116 " (confidence $conf, not a hardware monitoring chip"; 3117 } else { 3118 print "Success!\n", 3119 " (confidence $conf, driver `$chip->{driver}'"; 3120 } 3117 3121 if (@chips) { 3118 3122 print ", other addresses:"; … … 3122 3126 } 3123 3127 } 3124 printf "\n"; 3128 printf ")\n"; 3129 3130 next if ($chip->{driver} eq "not-a-sensor" 3131 || $chip->{driver} eq "use-isa-instead"); 3132 3125 3133 $new_hash = { conf => $conf, 3126 3134 i2c_addr => $addr, … … 5439 5447 foreach $chip (@chips_detected) { 5440 5448 next if not @{$chip->{detected}}; 5441 next if $chip->{driver} eq "not-a-sensor";5442 next if $chip->{driver} eq "use-isa-instead";5443 5449 if ($chip->{driver} eq "to-be-written") { 5444 5450 $modprobes .= "# no driver for $chip->{detected}[0]{chipname} yet\n"; … … 5672 5678 my ($chip,$data); 5673 5679 foreach $chip (@chips_detected) { 5674 next if $chip->{driver} eq "not-a-sensor";5675 next if $chip->{driver} eq "use-isa-instead";5676 5680 print "\nDriver `$chip->{driver}' "; 5677 5681 if (@{$chip->{detected}}) {
