[PATCH] powerpc: Add of_register_i2c_devices()

Benjamin Herrenschmidt benh at kernel.crashing.org
Tue Jul 3 10:42:49 EST 2007


On Mon, 2007-07-02 at 14:03 +0200, Segher Boessenkool wrote:
> > +	while ((node = of_get_next_child(adap_node, node))) {
> 
> of_for_each_child_node() or whatever it is called?
> 
> > +		addr = of_get_property(node, "reg", &len);
> > +		if (!addr || len < sizeof(int) || *addr > 0xffff)
> > +			continue;
> 
> Addresses aren't 16 bit AFAIK?

Some i2c busses support 10 bits addressing...

Ben.




More information about the Linuxppc-dev mailing list