iio: adc: ina2xx: Shift bus voltage register to mask flag bits
authorStefan Brüns <stefan.bruens@rwth-aachen.de>
Sat, 28 Oct 2017 21:12:46 +0000 (23:12 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 2 Dec 2017 10:40:14 +0000 (10:40 +0000)
commit2e64438487697f3f099946edc8acd4ceea6b1ab2
treea50c360fe66203aea4adc9f9b50629610ec1a271
parente36c8c161c3b7b63cdae88939bed150ff1560b78
iio: adc: ina2xx: Shift bus voltage register to mask flag bits

Lower bits of the INA219/220 bus voltage register are conversion
status flags, properly shift the value.

When reading via IIO buffer, the value is passed on unaltered,
shifting is the responsibility of the user.

Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ina2xx-adc.c