diff options
author | Jonathan Cameron <jic23@kernel.org> | 2015-12-22 13:51:27 -0500 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-12-22 13:51:27 -0500 |
commit | e8aab48b34d3bd069dfcf4ccb8f13ba8c98f7845 (patch) | |
tree | 952e49f9a87506d0b44c203203297c3d30bed3e0 | |
parent | 9b1de75b5deea3e56bfb76d19d71ec599fcc803b (diff) |
iio: adc: ina2xx: Fix incorrect report of data endianness to userspace.
This was extracted from a reposting of the driver after it had been applied
to the IIO tree. I have fast tracked it as the driver will be in 4.5 and
it would be nice to fix this trivial issue before it is.
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
-rw-r--r-- | drivers/iio/adc/ina2xx-adc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/adc/ina2xx-adc.c b/drivers/iio/adc/ina2xx-adc.c index bd56adaeec05..d803e5018a42 100644 --- a/drivers/iio/adc/ina2xx-adc.c +++ b/drivers/iio/adc/ina2xx-adc.c | |||
@@ -400,7 +400,7 @@ static ssize_t ina2xx_shunt_resistor_store(struct device *dev, | |||
400 | .sign = 'u', \ | 400 | .sign = 'u', \ |
401 | .realbits = 16, \ | 401 | .realbits = 16, \ |
402 | .storagebits = 16, \ | 402 | .storagebits = 16, \ |
403 | .endianness = IIO_LE, \ | 403 | .endianness = IIO_CPU, \ |
404 | } \ | 404 | } \ |
405 | } | 405 | } |
406 | 406 | ||