Re: [PATCH v2 4/7] iio: adc: max1027: Prepare the introduction of different resolutions

2019-10-07 Thread Miquel Raynal
Hi Jonathan, > > > > +#define MAX1X27_CHANNELS(depth)\ > > + MAX1027_T_CHAN, \ > > + MAX1027_V_CHAN(0, depth), \ > > + MAX1027_V_CHAN(1, depth), \ > > + MAX1027_V_CHAN(2, depth), \ > > +

Re: [PATCH v2 4/7] iio: adc: max1027: Prepare the introduction of different resolutions

2019-10-06 Thread Jonathan Cameron
On Thu, 3 Oct 2019 19:33:58 +0200 Miquel Raynal wrote: > Maxim's max1027/29/31 series returns the measured voltages with a > resolution of 10 bits. There is a very similar series, max1227/29/31 > which works identically but uses a resolution of 12 bits. Prepare the > support for these chips by

[PATCH v2 4/7] iio: adc: max1027: Prepare the introduction of different resolutions

2019-10-03 Thread Miquel Raynal
Maxim's max1027/29/31 series returns the measured voltages with a resolution of 10 bits. There is a very similar series, max1227/29/31 which works identically but uses a resolution of 12 bits. Prepare the support for these chips by turning the 'depth' into a macro parameter instead of hardcoding