1. 20 Jun, 2020 2 commits
    • Alexandru Ardelean's avatar
      iio: at91_adc: remove usage of iio_priv_to_dev() helper · 044d406a
      Alexandru Ardelean authored
      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: default avatarAlexandru Ardelean <alexandru.ardelean@analog.com>
      Tested-by: default avatarEugen Hristev <eugen.hristev@microchip.com>
      Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
      044d406a
    • Alexandru Ardelean's avatar
      iio: stm32-dfsdm-adc: remove usage of iio_priv_to_dev() helper · 07b6c9dc
      Alexandru Ardelean authored
      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: default avatarAlexandru Ardelean <alexandru.ardelean@analog.com>
      Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
      07b6c9dc
  2. 14 Jun, 2020 38 commits