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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux