Re: [PATCH] hmc6352: Add driver for the HMC6352 compass

From: Alan Cox
Date: Thu Jun 17 2010 - 09:10:23 EST


> > 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/