Alexandru Ardelean 4de87f45ce iio: position: iqs624: remove usage of iio_priv_to_dev()
We may want to get rid of the iio_priv_to_dev() helper. That's a bit
uncertain at this point. 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.

For this driver, removing iio_priv_to_dev() also means keeping a reference
on the state struct.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Acked-by: Jeff LaBundy <jeff@labundy.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2020-06-14 11:49:11 +01:00
..
2020-06-10 14:09:08 -07:00
2020-06-04 19:47:11 -07:00
2020-06-02 15:29:19 -07:00
2020-06-09 10:04:47 -07:00
2020-06-11 16:07:33 -07:00
2020-06-07 10:59:32 -07:00
2020-06-05 12:39:30 -07:00
2020-06-10 11:03:04 -07:00
2020-06-07 10:59:32 -07:00
2020-06-07 09:42:16 -07:00
2020-06-03 15:00:05 -07:00
2020-06-04 11:03:45 -07:00
2020-06-02 15:29:19 -07:00
2020-06-10 13:42:09 -07:00
2020-06-10 13:42:09 -07:00
2020-06-11 16:07:33 -07:00
2020-06-07 10:53:36 -07:00
2020-06-08 12:05:31 -07:00
2020-06-06 11:01:58 -07:00
2020-06-11 12:53:23 -07:00
2020-06-08 13:01:08 -07:00
2020-06-08 13:01:08 -07:00
2020-06-07 16:11:23 -07:00
2020-06-08 13:01:08 -07:00
2020-06-07 10:59:32 -07:00
2020-06-05 15:11:50 -07:00
2020-06-10 19:14:18 -07:00
2020-06-04 10:50:22 -07:00