summaryrefslogtreecommitdiffstats
path: root/.clang-format
diff options
context:
space:
mode:
authorAlexandru Ardelean <alexandru.ardelean@analog.com>2020-05-18 15:38:13 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2020-05-21 20:39:25 +0200
commit1ecca8a9a4989b693f2f6d349bf54c0fdfc10e8e (patch)
treecebb18a2404762a9082085323962623c0faf771c /.clang-format
parentiio: dac: ad5592r-base: Replace indio_dev->mlock with own device lock (diff)
downloadlinux-1ecca8a9a4989b693f2f6d349bf54c0fdfc10e8e.tar.xz
linux-1ecca8a9a4989b693f2f6d349bf54c0fdfc10e8e.zip
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>
Diffstat (limited to '.clang-format')
0 files changed, 0 insertions, 0 deletions