Skip to content

Commit e8aab48

Browse files
committed
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 <[email protected]>
1 parent 9b1de75 commit e8aab48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iio/adc/ina2xx-adc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ static ssize_t ina2xx_shunt_resistor_store(struct device *dev,
400400
.sign = 'u', \
401401
.realbits = 16, \
402402
.storagebits = 16, \
403-
.endianness = IIO_LE, \
403+
.endianness = IIO_CPU, \
404404
} \
405405
}
406406

0 commit comments

Comments
 (0)