WSL2-Linux-Kernel/drivers/iio/proximity
Alexandru Ardelean 1ecca8a9a4 iio: proximity: ping: pass reference to IIO device as param to ping_read()
Since there will be some changes to how iio_priv_to_dev() is implemented,
it could be that the helper becomes a bit slower, as it will be hidden away
in the IIO core.

But even without that rework, this looks like it can pass the 'indio_dev'
object to ping_read() and obtain the state struct via iio_priv() which is a
preferred practice than going back-n-forth (getting the state-struct, then
using iio_priv_to_dev() to get the indio_dev object back).

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2020-05-21 19:39:25 +01:00
..
Kconfig iio: proximity: Add driver support for vcnl3020 proximity sensor 2020-05-21 19:12:42 +01:00
Makefile iio: proximity: Add driver support for vcnl3020 proximity sensor 2020-05-21 19:12:42 +01:00
as3935.c
isl29501.c
mb1232.c
ping.c iio: proximity: ping: pass reference to IIO device as param to ping_read() 2020-05-21 19:39:25 +01:00
pulsedlight-lidar-lite-v2.c
rfd77402.c
srf04.c
srf08.c
sx9310.c
sx9500.c
vcnl3020.c iio: proximity: Add driver support for vcnl3020 proximity sensor 2020-05-21 19:12:42 +01:00
vl53l0x-i2c.c