iio: adc: ina2xx: Fix incorrect report of data endianness to userspace.
authorJonathan Cameron <jic23@kernel.org>
Tue, 22 Dec 2015 18:51:27 +0000 (18:51 +0000)
committerJonathan Cameron <jic23@kernel.org>
Tue, 22 Dec 2015 18:51:27 +0000 (18:51 +0000)
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>
drivers/iio/adc/ina2xx-adc.c

index bd56adaeec05a1abaf36111eed5119d74cbb3364..d803e5018a426234f8d319d3b1a334035bfe3c30 100644 (file)
@@ -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, \
        } \
 }
 
This page took 0.024932 seconds and 5 git commands to generate.