浏览代码

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>
Jonathan Cameron 9 年之前
父节点
当前提交
e8aab48b34
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/iio/adc/ina2xx-adc.c

+ 1 - 1
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, \
 	} \
 }