summaryrefslogtreecommitdiff
path: root/drivers/iio/light/iqs621-als.c
diff options
context:
space:
mode:
authorAlexandru Ardelean <alexandru.ardelean@analog.com>2020-05-22 10:08:01 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2020-06-14 11:49:09 +0100
commit70804e560b072df175a3406b45bdeb60f194efc7 (patch)
treea10a2eccdbbcf3d8cc4a14cd96c82d24861785ac /drivers/iio/light/iqs621-als.c
parentb791d1bdf9212d944d749a5c7ff6febdba241771 (diff)
downloadlwn-70804e560b072df175a3406b45bdeb60f194efc7.tar.gz
lwn-70804e560b072df175a3406b45bdeb60f194efc7.zip
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>
Diffstat (limited to 'drivers/iio/light/iqs621-als.c')
0 files changed, 0 insertions, 0 deletions