From: Jonathan Cameron Date: Tue, 22 Dec 2015 18:51:27 +0000 (+0000) Subject: iio: adc: ina2xx: Fix incorrect report of data endianness to userspace. X-Git-Tag: v4.5-rc1~122^2~4^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e8aab48b34d3bd069dfcf4ccb8f13ba8c98f7845;p=platform%2Fkernel%2Flinux-exynos.git 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 --- diff --git a/drivers/iio/adc/ina2xx-adc.c b/drivers/iio/adc/ina2xx-adc.c index bd56ada..d803e50 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, .sign = 'u', \ .realbits = 16, \ .storagebits = 16, \ - .endianness = IIO_LE, \ + .endianness = IIO_CPU, \ } \ }