Skip to content

Commit

Permalink
iio: adc: ina2xx: Fix incorrect report of data endianness to userspace.
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
jic23 committed Dec 22, 2015
1 parent 9b1de75 commit e8aab48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/iio/adc/ina2xx-adc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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, \
} \
}

Expand Down

0 comments on commit e8aab48

Please sign in to comment.