Alexandru Ardelean 70804e560b iio: light: tsl2563: pass iio device as i2c_client private data
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, it implies passing the IIO device on the i2c client
private data. The implementation of iio_priv() will not be affected by the
rework/hiding of iio_priv_to_dev().

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2020-06-14 11:49:09 +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