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

Josh Boyer jwboyer at linux.vnet.ibm.com
Fri Jun 6 05:15:00 EST 2008


On Thu, 5 Jun 2008 13:14:00 -0600
"Grant Likely" <grant.likely at secretlab.ca> wrote:

> On Thu, Jun 5, 2008 at 12:56 PM, Josh Boyer <jwboyer at linux.vnet.ibm.com> wrote:
> > On Thu, 5 Jun 2008 12:46:39 -0600
> > "Grant Likely" <grant.likely at secretlab.ca> wrote:
> >
> >> In Timur's case, it is absolutely appropriate to use cell-index and/or
> >> a phandle to make sure it gets the correct DMA registers (which is
> >> what cell-index is intended to solve).  It is not appropriate to
> >> depend on that same number to also be the logical i2c bus number.
> >
> > Hence "index" would be a better fit for the latter then, yes?
> >
> 
> No; use an alias in the aliases node.  That is what aliases is designed
> for.  Something like 'index' is a reinvention of the wheel.

Ah.  Good point.

josh



More information about the Linuxppc-dev mailing list