Show
Ignore:
Timestamp:
04/20/08 19:32:12 (4 years ago)
Author:
khali
Message:

Make it possible to pass the i2c bus by name instead of by number. As
there is no guarantee that i2c bus numbering will stay the same over
time (for example if hardware is added of removed, or simply due to
loading the drivers in a different order), passing the i2c bus by name
is more robust.

The i2c bus names are supposed to be unique. If you request a bus by
name and this name happens to not be unique, then the tools will play
it safe and quit. This is better than writing to the wrong device.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • i2c-tools/trunk/tools/i2cdetect.8

    r4488 r5195  
    1 .TH I2CDETECT 8 "June 2007" 
     1.TH I2CDETECT 8 "April 2008" 
    22.SH NAME 
    33i2cdetect \- detect I2C chips 
     
    2424i2cdetect is a userspace program to scan an I2C bus for devices. It 
    2525outputs a table with the list of detected devices on the specified bus. 
    26 \fIi2cbus\fR indicates the number of the I2C bus to be scanned, and 
     26\fIi2cbus\fR indicates the number or name of the I2C bus to be scanned, and 
    2727should correspond to one of the busses listed by \fIi2cdetect -l\fR. 
    2828The optional parameters \fIfirst\fR and \fIlast\fR restrict the scanning