[PATCH v2 0/3] iio: adc: ina2xx: Fixes and extensions

From: Stefan BrÃns
Date: Sat Oct 28 2017 - 17:13:18 EST


The first patch fixes an issue with the conversion-ready status flag showing
up in the bus voltage raw value.

(removed original second patch from series, as already applied to togreg branch)

The second patch cleans up the specification of the LSB value for the shunt
voltage register. For code readability and uniformity, use the value from the
datasheet (e.g 10uV per LSB) instead of the reciprocal (100 LSBs per mV), as
done for the other registers.

The third patch adds support for the INA219/220 specific bus voltage range
and shunt voltage PGA.

Changes in v2:
- Apply to the shunt voltage, not bus voltage register
- Shift instead of masking the LSBs
- new patch
- Fix conversion for shunt gain, function expects milli, not micro

Stefan BrÃns (3):
iio: adc: ina2xx: Shift bus voltage register to mask flag bits
iio: adc: ina2xx: Use LSB specifier instead of divider in config
iio: adc: ina2xx: Allow setting Shunt Voltage PGA gain and Bus Voltage
range

drivers/iio/adc/ina2xx-adc.c | 149 +++++++++++++++++++++++++++++++++++++------
1 file changed, 131 insertions(+), 18 deletions(-)

--
2.14.3