Messages in this thread | | | Date | Thu, 17 Jun 2010 13:46:50 +0100 | From | Alan Cox <> | Subject | Re: [PATCH] hmc6352: Add driver for the HMC6352 compass |
| |
> > Its an array anyway - there isn't as such a 'correct macro' nor > > does it need to be using one. > > So why does he use this unstructured data? Do we just hope the > compiler is good enough on big endian architectures?
Its an array because it comes from an i2c bus which is a bytestream. There is no structure on the i2c bus and the device is defined to return a pair of bytes in this manner.
Alan
| |