Re: [PATCH 11/14] iio: adc: at91-sama5d2_adc: optimize scan index for diff channels

2017-12-29 Thread Jonathan Cameron
On Fri, 22 Dec 2017 17:07:18 +0200 Eugen Hristev wrote: > Optimize the scan index for the differential channels. Before, it > was single channel count + index of the first single channel > number of the differential pair. (e.g. 11+0, +2, +4, etc.) > Divide that

Re: [PATCH 11/14] iio: adc: at91-sama5d2_adc: optimize scan index for diff channels

2017-12-29 Thread Jonathan Cameron
On Fri, 22 Dec 2017 17:07:18 +0200 Eugen Hristev wrote: > Optimize the scan index for the differential channels. Before, it > was single channel count + index of the first single channel > number of the differential pair. (e.g. 11+0, +2, +4, etc.) > Divide that number by two (since it's always

[PATCH 11/14] iio: adc: at91-sama5d2_adc: optimize scan index for diff channels

2017-12-22 Thread Eugen Hristev
Optimize the scan index for the differential channels. Before, it was single channel count + index of the first single channel number of the differential pair. (e.g. 11+0, +2, +4, etc.) Divide that number by two (since it's always even), and add it up as a scan index to have consecutive numbered

[PATCH 11/14] iio: adc: at91-sama5d2_adc: optimize scan index for diff channels

2017-12-22 Thread Eugen Hristev
Optimize the scan index for the differential channels. Before, it was single channel count + index of the first single channel number of the differential pair. (e.g. 11+0, +2, +4, etc.) Divide that number by two (since it's always even), and add it up as a scan index to have consecutive numbered