Re: [PATCH 3/3] iio: wrapper: unit-converter: new driver

2018-03-30 Thread Jonathan Cameron
On Tue, 27 Mar 2018 15:32:13 +0200 Peter Rosin wrote: > On 2018-03-27 15:22, Jonathan Cameron wrote: > > On Tue, 27 Mar 2018 09:42:40 +0200 > > Peter Rosin wrote: > >> On 2018-03-24 15:03, Jonathan Cameron wrote: > >>> On Mon, 19 Mar 2018 18:02:46 +0100 > >>> Peter Rosin wrote: > +

Re: [PATCH 3/3] iio: wrapper: unit-converter: new driver

2018-03-27 Thread Peter Rosin
On 2018-03-27 15:22, Jonathan Cameron wrote: > On Tue, 27 Mar 2018 09:42:40 +0200 > Peter Rosin wrote: >> On 2018-03-24 15:03, Jonathan Cameron wrote: >>> On Mon, 19 Mar 2018 18:02:46 +0100 >>> Peter Rosin wrote: + if (iio_channel_has_info(pchan, IIO_CHAN_INFO_RAW)) + chan->in

Re: [PATCH 3/3] iio: wrapper: unit-converter: new driver

2018-03-27 Thread Jonathan Cameron
On Tue, 27 Mar 2018 09:42:40 +0200 Peter Rosin wrote: > On 2018-03-24 15:03, Jonathan Cameron wrote: > > On Mon, 19 Mar 2018 18:02:46 +0100 > > Peter Rosin wrote: > > > >> If an ADC channel measures the midpoint of a voltage divider, the > >> interesting voltage is often the voltage over the

Re: [PATCH 3/3] iio: wrapper: unit-converter: new driver

2018-03-27 Thread Peter Rosin
On 2018-03-24 15:03, Jonathan Cameron wrote: > On Mon, 19 Mar 2018 18:02:46 +0100 > Peter Rosin wrote: > >> If an ADC channel measures the midpoint of a voltage divider, the >> interesting voltage is often the voltage over the full resistance. >> E.g. if the full voltage it too big for the ADC to

Re: [PATCH 3/3] iio: wrapper: unit-converter: new driver

2018-03-24 Thread Jonathan Cameron
On Mon, 19 Mar 2018 18:02:46 +0100 Peter Rosin wrote: > If an ADC channel measures the midpoint of a voltage divider, the > interesting voltage is often the voltage over the full resistance. > E.g. if the full voltage it too big for the ADC to handle. > Likewise, if an ADC channel measures the vo

[PATCH 3/3] iio: wrapper: unit-converter: new driver

2018-03-19 Thread Peter Rosin
If an ADC channel measures the midpoint of a voltage divider, the interesting voltage is often the voltage over the full resistance. E.g. if the full voltage it too big for the ADC to handle. Likewise, if an ADC channel measures the voltage across a resistor, the interesting value is often the curr