Re: [PATCH v2] iio: proximity: ping: pass reference to IIO device as param to ping_read()

2020-05-21 Thread Jonathan Cameron
On Mon, 18 May 2020 16:38:13 +0300 Alexandru Ardelean wrote: > 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

[PATCH v2] iio: proximity: ping: pass reference to IIO device as param to ping_read()

2020-05-18 Thread Alexandru Ardelean
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