Re: [PATCH 3/3] iio: ina2xx: add support for CHAN_INFO_SCALE

2015-12-14 Thread Marc Titinger
On 12/12/2015 18:14, Jonathan Cameron wrote: On 11/12/15 16:49, Marc Titinger wrote: Provide client apps with the scales to apply to the register values read from the software buffer. Follow the ABI documentation so that values are in milli-unit after scales are applied. Umm. The below looks

Re: [PATCH 3/3] iio: ina2xx: add support for CHAN_INFO_SCALE

2015-12-14 Thread Marc Titinger
On 12/12/2015 18:14, Jonathan Cameron wrote: On 11/12/15 16:49, Marc Titinger wrote: Provide client apps with the scales to apply to the register values read from the software buffer. Follow the ABI documentation so that values are in milli-unit after scales are applied. Umm. The below looks

Re: [PATCH 3/3] iio: ina2xx: add support for CHAN_INFO_SCALE

2015-12-12 Thread Jonathan Cameron
On 11/12/15 16:49, Marc Titinger wrote: > Provide client apps with the scales to apply to the register values > read from the software buffer. > > Follow the ABI documentation so that values are in milli-unit after scales > are applied. Umm. The below looks like it is doing rather more than

Re: [PATCH 3/3] iio: ina2xx: add support for CHAN_INFO_SCALE

2015-12-12 Thread Jonathan Cameron
On 11/12/15 16:49, Marc Titinger wrote: > Provide client apps with the scales to apply to the register values > read from the software buffer. > > Follow the ABI documentation so that values are in milli-unit after scales > are applied. Umm. The below looks like it is doing rather more than

[PATCH 3/3] iio: ina2xx: add support for CHAN_INFO_SCALE

2015-12-11 Thread Marc Titinger
Provide client apps with the scales to apply to the register values read from the software buffer. Follow the ABI documentation so that values are in milli-unit after scales are applied. Signed-off-by: Marc Titinger --- drivers/iio/adc/ina2xx-adc.c | 85

[PATCH 3/3] iio: ina2xx: add support for CHAN_INFO_SCALE

2015-12-11 Thread Marc Titinger
Provide client apps with the scales to apply to the register values read from the software buffer. Follow the ABI documentation so that values are in milli-unit after scales are applied. Signed-off-by: Marc Titinger --- drivers/iio/adc/ina2xx-adc.c | 85