[PATCH] powerpc: Add of_register_i2c_devices()
segher at kernel.crashing.org
Tue Jul 3 22:33:34 EST 2007
>>> + 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...
All I2C busses. All I2C devices, too, it's just that
not all of them can decode 10-bit addresses (but they
are fine with seeing those on the bus, they'll just
never be addressed by it themselves).
Anyway, my point was that 10 isn't the same as 16.
More information about the Linuxppc-dev