diff options
author | Chris Lesiak <chris.lesiak@licor.com> | 2015-11-02 15:45:03 -0600 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-11-15 12:36:19 +0000 |
commit | 0d2f6fd3ffd5e7a447233a57112246bc00064752 (patch) | |
tree | 8c5882a3e9f69597589d048c9a56dc4d37b0c8fb /drivers/iio/adc | |
parent | 8546d2e5b15e454d2d492a1e9625732980e8eb26 (diff) | |
download | linux-0d2f6fd3ffd5e7a447233a57112246bc00064752.tar.bz2 |
iio: si7020: Swap data byte order
The Silicon Labs Si7013, Si7020, and Si7021 family of I2C humidity and
temperature sensors deliver 16 bit data high byte first.
See the datasheet available at:
https://www.silabs.com/Support%20Documents%2fTechnicalDocs%2fSi7020-A20.pdf
But as documented in Documentation/i2c/smbus-protocol,
i2c_smbus_read_word_data() expects the low byte first.
Change the driver to use i2c_smbus_read_word_swapped to get correct byte
order.
Signed-off-by: Chris Lesiak <chris.lesiak@licor.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/adc')
0 files changed, 0 insertions, 0 deletions