Re: [PATCH v4 2/7] iio: core: wrap IIO device into an iio_dev_opaque object

2020-07-21 Thread Alexandru Ardelean
On Tue, Jul 21, 2020 at 12:47 PM Dmitry Baryshkov wrote: > > Hello, > > On Tue, Jun 30, 2020 at 07:57:03AM +0300, Alexandru Ardelean wrote: > > There are plenty of bad designs we want to discourage or not have to review > > manually usually about accessing private (marked as [INTERN]) fields of >

Re: [PATCH v4 2/7] iio: core: wrap IIO device into an iio_dev_opaque object

2020-07-21 Thread Dmitry Baryshkov
Hello, On Tue, Jun 30, 2020 at 07:57:03AM +0300, Alexandru Ardelean wrote: > There are plenty of bad designs we want to discourage or not have to review > manually usually about accessing private (marked as [INTERN]) fields of > 'struct iio_dev'. > > Sometimes users copy drivers that are not alwa

[PATCH v4 2/7] iio: core: wrap IIO device into an iio_dev_opaque object

2020-06-29 Thread Alexandru Ardelean
There are plenty of bad designs we want to discourage or not have to review manually usually about accessing private (marked as [INTERN]) fields of 'struct iio_dev'. Sometimes users copy drivers that are not always the best examples. A better idea is to hide those fields into the framework. For '