linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] iio: adc: ina2xx: Fixes and extensions
@ 2017-10-28 21:12 Stefan Brüns
  0 siblings, 0 replies; only message in thread
From: Stefan Brüns @ 2017-10-28 21:12 UTC (permalink / raw)
  To: linux-iio
  Cc: Peter Meerwald-Stadler, Stefan Brüns, linux-kernel,
	Andrew F . Davis, Lars-Peter Clausen, Jonathan Cameron,
	Hartmut Knaack, Javier Martinez Canillas

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-10-28 21:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-28 21:12 [PATCH v2 0/3] iio: adc: ina2xx: Fixes and extensions Stefan Brüns

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).