Re: [PATCH v2] iio: mxs-lradc: remove useless check

2014-02-03 Thread Jonathan Cameron
On 18/01/14 20:33, Marek Vasut wrote: On Saturday, January 18, 2014 at 08:05:18 PM, Alexandre Belloni wrote: Checking the channel number is useless since mxs_lradc_read_raw() is called from a controlled environment and the driver is responsible for filing the struct iio_chan_spec.

Re: [PATCH v2] iio: mxs-lradc: remove useless check

2014-02-03 Thread Jonathan Cameron
On 18/01/14 20:33, Marek Vasut wrote: On Saturday, January 18, 2014 at 08:05:18 PM, Alexandre Belloni wrote: Checking the channel number is useless since mxs_lradc_read_raw() is called from a controlled environment and the driver is responsible for filing the struct iio_chan_spec.

Re: [PATCH v2] iio: mxs-lradc: remove useless check

2014-01-18 Thread Marek Vasut
On Saturday, January 18, 2014 at 08:05:18 PM, Alexandre Belloni wrote: > Checking the channel number is useless since mxs_lradc_read_raw() is called > from a controlled environment and the driver is responsible for filing the > struct iio_chan_spec. > > Signed-off-by: Alexandre Belloni > --- >

[PATCH v2] iio: mxs-lradc: remove useless check

2014-01-18 Thread Alexandre Belloni
Checking the channel number is useless since mxs_lradc_read_raw() is called from a controlled environment and the driver is responsible for filing the struct iio_chan_spec. Signed-off-by: Alexandre Belloni --- drivers/staging/iio/adc/mxs-lradc.c | 4 1 file changed, 4 deletions(-) diff

[PATCH v2] iio: mxs-lradc: remove useless check

2014-01-18 Thread Alexandre Belloni
Checking the channel number is useless since mxs_lradc_read_raw() is called from a controlled environment and the driver is responsible for filing the struct iio_chan_spec. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- drivers/staging/iio/adc/mxs-lradc.c | 4 1

Re: [PATCH v2] iio: mxs-lradc: remove useless check

2014-01-18 Thread Marek Vasut
On Saturday, January 18, 2014 at 08:05:18 PM, Alexandre Belloni wrote: Checking the channel number is useless since mxs_lradc_read_raw() is called from a controlled environment and the driver is responsible for filing the struct iio_chan_spec. Signed-off-by: Alexandre Belloni