Re: [PATCH v3] iio: stm32-adc: remove usage of iio_priv_to_dev() helper

2020-05-31 Thread Jonathan Cameron
On Tue, 26 May 2020 17:46:41 +0200 Fabrice Gasnier wrote: > On 5/26/20 3:44 PM, Alexandru Ardelean wrote: > > We may want to get rid of the iio_priv_to_dev() helper. The reason is that > > we will hide some of the members of the iio_dev structure (to prevent > > drivers from accessing them

Re: [PATCH v3] iio: stm32-adc: remove usage of iio_priv_to_dev() helper

2020-05-26 Thread Fabrice Gasnier
On 5/26/20 3:44 PM, Alexandru Ardelean wrote: > We may want to get rid of the iio_priv_to_dev() helper. The reason is that > we will hide some of the members of the iio_dev structure (to prevent > drivers from accessing them directly), and that will also mean hiding the > implementation of the

[PATCH v3] iio: stm32-adc: remove usage of iio_priv_to_dev() helper

2020-05-26 Thread Alexandru Ardelean
We may want to get rid of the iio_priv_to_dev() helper. The reason is that we will hide some of the members of the iio_dev structure (to prevent drivers from accessing them directly), and that will also mean hiding the implementation of the iio_priv_to_dev() helper inside the IIO core. Hiding the