Changeset 504

Show
Ignore:
Timestamp:
07/21/99 22:11:27 (15 years ago)
Author:
frodo
Message:

sensors-detect now use smbus_quick command for probes. sensors-detect

no longer tries to load i2c-proc. TODO list updates.

Location:
lm-sensors/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/TODO

    r484 r504  
    11Many, many things. Most notably: 
     2 
     3I2C CODE CHANGES 
     4================ 
     5 
     6* Test all modules 
     7* Add code and supporting files to compile modules into the main kernel 
     8* Write a mkpatch script, as in the i2c tree 
     9* Check the i2c-isa code, use 16 bit address field in i2c struct. 
    210 
    311KERNEL MODULES 
  • lm-sensors/trunk/prog/detect/sensors-detect

    r445 r504  
    971971                                     next; 
    972972 
    973     next unless i2c_smbus_read_byte(\*FILE) >= 0; 
     973    next unless i2c_smbus_write_quick(\*FILE,$SMBUS_WRITE) >= 0; 
    974974    printf "Client found at address 0x%02x\n",$addr; 
    975975 
     
    14731473 
    14741474  # These are always needed 
    1475   $modprobes .= "# General I2C modules\n"; 
    1476   $modprobes .= "modprobe i2c-proc\n"; 
    14771475  $configfile .= "# I2C module options\n"; 
    14781476  $configfile .= "alias char-major-89 i2c-dev\n"; 
     
    16421640  } 
    16431641 
    1644   print " To continue, we need modules `i2c-proc' and `i2c-dev' to be ", 
    1645         "loaded.\n"; 
    1646   if (contains "i2c-proc", @modules_list) { 
    1647     print "i2c-proc is already loaded.\n"; 
    1648   } else { 
    1649     if ($> != 0) { 
    1650       print " i2c-proc is not loaded, and you are not root. I can't ", 
    1651             "continue.\n"; 
    1652       exit; 
    1653     } else { 
    1654       print " i2c-proc is not loaded. May I load it now? (YES/no): "; 
    1655       if (<STDIN> =~ /^\s*[Nn]/) { 
    1656         print " Sorry, in that case I can't continue.\n"; 
    1657         exit; 
    1658       } elsif (system "modprobe","i2c-proc") { 
    1659         print " Loading failed ($!), aborting.\n"; 
    1660         exit; 
    1661       } else { 
    1662         print " Module loaded succesfully.\n"; 
    1663       } 
    1664     } 
    1665   } 
     1642  print " To continue, we need module `i2c-dev' to be loaded.\n"; 
    16661643  if (contains "i2c-dev", @modules_list) { 
    16671644    print "i2c-dev is already loaded.\n";