Messages in this thread | | | Date | Sat, 14 Mar 2015 12:48:43 -0700 | Subject | Re: [PATCH] iio: si7020: Fix endianness for I2C reads | From | Andrey Smirnov <> |
| |
> > i2c_smbus_read_word_data() returns data in native endianess. But it > interprets the word on the bus as little-endian (As specified by the SMBus > spec). If your chip returns data in big-endian use > i2c_smbus_read_word_data_swapped(). > > - Lars
Ah, good to know. I'll update the patch accordingly.
Thanks
| |