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

2019-10-12 Thread Jonathan Cameron
On Fri, 11 Oct 2019 16:43:43 +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 t

[PATCH v4 4/8] iio: adc: max1027: Prepare the introduction of different resolutions

2019-10-11 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 it