Re: [PATCH] iio: stm32-adc: keep a reference to the iio device on the state struct

2020-05-24 Thread Jonathan Cameron
On Fri, 22 May 2020 16:07:19 +0300 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 > implement

[PATCH] iio: stm32-adc: keep a reference to the iio device on the state struct

2020-05-22 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