"cell-index" vs. "index" vs. no index in I2C device nodes

Sean MacLennan smaclennan at pikatech.com
Fri Jun 6 14:29:44 EST 2008


On Thu, 5 Jun 2008 22:07:31 -0600
"Grant Likely" <grant.likely at secretlab.ca> wrote:

> The fallback is to just let the i2c layer auto-assign an ID.  The only
> reason I can think of to want to assign a specific id to an i2c bus is
> so that a userspace application can reference a specific bus.  The
> drivers really shouldn't care.

If we switch the iic driver to use i2c_add_adapter rather than
i2c_add_numbered_adapter, this is exactly what it does. i2c will use
the idr_ functions to assign a number.

Cheers,
   Sean



More information about the Linuxppc-dev mailing list