lkml.org 
[lkml]   [2015]   [Mar]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] iio: si7020: Fix endianness for I2C reads
From
>
> 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


\
 
 \ /
  Last update: 2015-03-14 21:01    [W:0.098 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site