[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAHQ1cqH92D7y9n0xvsW5yLt9NaCMLE4H_f6JbNvXavyX_tYk3g@mail.gmail.com>
Date: Sat, 14 Mar 2015 12:48:43 -0700
From: Andrey Smirnov <andrew.smirnov@...il.com>
To: Lars-Peter Clausen <lars@...afoo.de>
Cc: linux-iio@...r.kernel.org, linux-kernel@...r.kernel.org,
Robert Smith <quad@...bo1ics.com>
Subject: Re: [PATCH] iio: si7020: Fix endianness for I2C reads
>
> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists