Subject: Re: [PATCH] powerpc: Add of_register_i2c_devices()

From: Segher Boessenkool <[email-masked]>
Date: Tue, 3 Jul 2007 14:33:34 +0200

>>> +		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.

Segher