diff options
author | Peter Meerwald <pmeerw@pmeerw.net> | 2014-07-14 16:38:00 -0400 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2014-07-20 12:52:15 -0400 |
commit | f4e2f94d8c1057154728eff974c8ce8688e1ea2d (patch) | |
tree | c4b85aed02a1a6778a09afcf0170875c8aba8ebd /drivers/iio | |
parent | c1288b8338815d6d17577b6b6a1267e7be8bc409 (diff) |
iio:kxcjk-1013: Fix endianness in scan_type
driver uses i2c_smbus_read_word_data() to the data in the trigger handler and hence
already does endianness conversion; the I2C chip has data in little endian, but the
value is provides in CPU endianness
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Reviewed-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio')
-rw-r--r-- | drivers/iio/accel/kxcjk-1013.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/accel/kxcjk-1013.c b/drivers/iio/accel/kxcjk-1013.c index eb8a3229a9d6..7941cf2d31ee 100644 --- a/drivers/iio/accel/kxcjk-1013.c +++ b/drivers/iio/accel/kxcjk-1013.c | |||
@@ -453,7 +453,7 @@ static const struct attribute_group kxcjk1013_attrs_group = { | |||
453 | .realbits = 12, \ | 453 | .realbits = 12, \ |
454 | .storagebits = 16, \ | 454 | .storagebits = 16, \ |
455 | .shift = 4, \ | 455 | .shift = 4, \ |
456 | .endianness = IIO_LE, \ | 456 | .endianness = IIO_CPU, \ |
457 | }, \ | 457 | }, \ |
458 | } | 458 | } |
459 | 459 | ||