diff options
author | Alexandru Ardelean <alexandru.ardelean@analog.com> | 2020-05-25 12:25:13 +0200 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2020-06-20 18:29:38 +0200 |
commit | 044d406a8490ea6a4e1a06ccb94090c8a0951d3c (patch) | |
tree | 5c73c8cbf73320765d1434cd9fed5d8554358709 /init/do_mounts_rd.c | |
parent | iio: stm32-dfsdm-adc: remove usage of iio_priv_to_dev() helper (diff) | |
download | linux-044d406a8490ea6a4e1a06ccb94090c8a0951d3c.tar.xz linux-044d406a8490ea6a4e1a06ccb94090c8a0951d3c.zip |
iio: at91_adc: remove usage of iio_priv_to_dev() helper
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 implementation of iio_priv_to_dev() implies that some fast-paths
may not be fast anymore, so a general idea is to try to get rid of the
iio_priv_to_dev() altogether.
The iio_priv() helper won't be affected by the rework, as the iio_dev
struct will keep a reference to the private information.
For this driver, not using iio_priv_to_dev(), means reworking some paths to
pass the iio device and using iio_priv() to access the private information.
Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Tested-by: Eugen Hristev <eugen.hristev@microchip.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'init/do_mounts_rd.c')
0 files changed, 0 insertions, 0 deletions