summaryrefslogtreecommitdiff
path: root/drivers/iio/light/cm3323.c
diff options
context:
space:
mode:
authorAlexandru Ardelean <alexandru.ardelean@analog.com>2020-05-26 16:44:48 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2020-06-14 11:49:49 +0100
commitcd64d3579d58f2aa547c1cff856d24169263f765 (patch)
tree42783beda08f925b23c8747a296889a35da73e57 /drivers/iio/light/cm3323.c
parent723151a2401afdcee4f53ae92775902b58ee0469 (diff)
iio: stm32-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> Acked-by: Fabrice Gasnier <fabrice.gasnier@st.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/light/cm3323.c')
0 files changed, 0 insertions, 0 deletions