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

Grant Likely grant.likely at secretlab.ca
Fri Jun 6 05:14:00 EST 2008


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.

Cheers,
g.

-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.



More information about the Linuxppc-dev mailing list