Re: [PATCH v2 3/8] iio: at91_adc: pass ref to IIO device via param for int function

2020-05-21 Thread Jonathan Cameron
On Mon, 18 May 2020 08:32:11 + "Ardelean, Alexandru" wrote: > On Sat, 2020-05-16 at 18:17 +0100, Jonathan Cameron wrote: > > [External] > > > > On Thu, 14 May 2020 16:17:05 +0300 > > Alexandru Ardelean wrote: > > > > > Since there will be some changes to how iio_priv_to_dev() is

Re: [PATCH v2 3/8] iio: at91_adc: pass ref to IIO device via param for int function

2020-05-18 Thread Ardelean, Alexandru
On Sat, 2020-05-16 at 18:17 +0100, Jonathan Cameron wrote: > [External] > > On Thu, 14 May 2020 16:17:05 +0300 > Alexandru Ardelean wrote: > > > Since there will be some changes to how iio_priv_to_dev() is implemented, > > it could be that the helper becomes a bit slower, as it will be hidden

Re: [PATCH v2 3/8] iio: at91_adc: pass ref to IIO device via param for int function

2020-05-16 Thread Jonathan Cameron
On Thu, 14 May 2020 16:17:05 +0300 Alexandru Ardelean wrote: > Since there will be some changes to how iio_priv_to_dev() is implemented, > it could be that the helper becomes a bit slower, as it will be hidden away > in the IIO core. > > For this driver, the IIO device can be passed directly as

[PATCH v2 3/8] iio: at91_adc: pass ref to IIO device via param for int function

2020-05-14 Thread Alexandru Ardelean
Since there will be some changes to how iio_priv_to_dev() is implemented, it could be that the helper becomes a bit slower, as it will be hidden away in the IIO core. For this driver, the IIO device can be passed directly as a parameter to the at91_ts_sample() function, thus making it immune to