Re: [PATCH 06/11] staging: iio: adc: ad7606: Use find_closest() macro

2018-12-16 Thread Jonathan Cameron
On Thu, 13 Dec 2018 14:46:18 +0200 Stefan Popa wrote: > When looking for the available scale or oversampling ratio, it is better > to use the find_closest() macro. This simplifies the code and also does > not require an exact value to be entered from the user space. > > Signed-off-by: Stefan

[PATCH 06/11] staging: iio: adc: ad7606: Use find_closest() macro

2018-12-13 Thread Stefan Popa
When looking for the available scale or oversampling ratio, it is better to use the find_closest() macro. This simplifies the code and also does not require an exact value to be entered from the user space. Signed-off-by: Stefan Popa --- drivers/staging/iio/adc/ad7606.c | 58