Subject: Re: New i2c framework
To: None <>
From: Bill Studenmund <>
List: tech-kern
Date: 02/19/2002 09:04:48
On 19 Feb 2002 wrote:

> | On 18 Feb 2002 wrote:
> | > 	if (id != AT76C651_CHIPID) {
> |             ^^^
> | What is the defined byte ordering for i2c? Is there one? Since id is a
> | int16_t, BE and LE machines will handle this bit differently...
> There is no defined byte ordering for i2c.  That is defined separately
> by each device manufacturer.

So then how do you know if you got the right id? What if another chip has
the byte-swapped ID, and its manufacturer chose to use the other byte
ordering, so that they both end up being the same byte sequence?

Take care,