Changeset 1054

Show
Ignore:
Timestamp:
03/31/01 21:07:09 (13 years ago)
Author:
mds
Message:

add devfs /dev/i2c/x support

Location:
lm-sensors/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/CHANGES

    r1053 r1054  
    5353                   Fix swapped limit and hysteresis on 9240, 5595, 686a; 
    5454                   Change mtp008 temps from max/min to limit/hyst. 
    55   Program sensors-detect: Recognize lm78 with chipid=0x20 
    56                           Recognize SMSC Victory66 South Bridge 
     55  Program sensors-detect: Recognize lm78 with chipid=0x20; 
     56                          Recognize SMSC Victory66 South Bridge; 
     57                          Add devfs /dev/i2c/x support 
    5758  Program tellerstats: new 
    5859 
  • lm-sensors/trunk/prog/detect/sensors-detect

    r1043 r1054  
    12771277      open FILE,"/dev/i2c-$new_misdetected_ref->[$i]->{i2c_devnr}" or 
    12781278        open FILE,"/dev/i2c$new_misdetected_ref->[$i]->{i2c_devnr}" or 
    1279            print("Can't open ", 
    1280                  "/dev/i2c[-]$new_misdetected_ref->[$i]->{i2c_devnr}?!?\n"), 
    1281            next; 
     1279          open FILE,"/dev/i2c/$new_misdetected_ref->[$i]->{i2c_devnr}" or 
     1280             print("Can't open ", 
     1281                   "/dev/i2c[-/]$new_misdetected_ref->[$i]->{i2c_devnr}?!?\n"), 
     1282             next; 
    12821283      i2c_set_slave_addr \*FILE,$new_misdetected_ref->[$i]->{i2c_addr} or 
    12831284           print("Can't set I2C address for ", 
    1284                  "/dev/i2c[-]$new_misdetected_ref->[$i]->{i2c_devnr}?!?\n"), 
     1285                 "/dev/i2c[-/]$new_misdetected_ref->[$i]->{i2c_devnr}?!?\n"), 
    12851286           next; 
    12861287      if (&$alias_detect ($datahash->{isa_addr},\*FILE, 
     
    13041305      open FILE,"/dev/i2c-$new_detected_ref->[$i]->{i2c_devnr}" or 
    13051306        open FILE,"/dev/i2c$new_detected_ref->[$i]->{i2c_devnr}" or 
    1306            print("Can't open ", 
    1307                  "/dev/i2c[-]$new_detected_ref->[$i]->{i2c_devnr}?!?\n"), 
    1308            next; 
     1307          open FILE,"/dev/i2c/$new_detected_ref->[$i]->{i2c_devnr}" or 
     1308             print("Can't open ", 
     1309                   "/dev/i2c[-/]$new_detected_ref->[$i]->{i2c_devnr}?!?\n"), 
     1310             next; 
    13091311      i2c_set_slave_addr \*FILE,$new_detected_ref->[$i]->{i2c_addr} or 
    13101312           print("Can't set I2C address for ", 
    1311                  "/dev/i2c[-]$new_detected_ref->[$i]->{i2c_devnr}?!?\n"), 
     1313                 "/dev/i2c[-/]$new_detected_ref->[$i]->{i2c_devnr}?!?\n"), 
    13121314           next; 
    13131315      if (&$alias_detect ($datahash->{isa_addr},\*FILE, 
     
    13751377  open FILE,"/dev/i2c-$adapter_nr" or  
    13761378    open FILE,"/dev/i2c$adapter_nr" or  
    1377        (print "Can't open /dev/i2c[-]$adapter_nr\n"), return; 
     1379      open FILE,"/dev/i2c/$adapter_nr" or  
     1380         (print "Can't open /dev/i2c[-/]$adapter_nr\n"), return; 
    13781381 
    13791382  # Now scan each address in turn 
     
    22942297        " doc/modules for more information.\n"; 
    22952298  print " Also, you need to be `root', or at least have access to the ", 
    2296         "/dev/i2c[-]* files\n", 
     2299        "/dev/i2c[-/]* files\n", 
    22972300        " for some things. You can use prog/mkdev/mkdev.sh to create these ", 
    22982301        "/dev files\n", 
     
    23762379            " `/etc/conf.modules' (or `/etc/modules.conf') for automatic ", 
    23772380            "loading of\n", 
    2378             " this module. If not, you won't be able to open any /dev/i2c[-]* ", 
     2381            " this module. If not, you won't be able to open any /dev/i2c[-/]* ", 
    23792382            "file.\n"; 
    23802383    } else { 
     
    23852388              " (or `/etc/modules.conf') for automatic loading of this ", 
    23862389              "module. If not,\n", 
    2387               " you won't be able to open any /dev/i2c[-]* file (unless you", 
     2390              " you won't be able to open any /dev/i2c[-/]* file (unless you", 
    23882391              "have it built-in\n", 
    23892392              " into your kernel)\n";