summaryrefslogtreecommitdiffstats
path: root/include/linux/iio/iio.h
diff options
context:
space:
mode:
authorGregor Boirie2016-09-02 20:47:55 +0200
committerJonathan Cameron2016-09-04 16:42:46 +0200
commit70e483487db787b152da756d4be0fef917378142 (patch)
tree53e07ce3e66eede20b9516083d06f9d5571f4386 /include/linux/iio/iio.h
parentiio:trigger: add resource managed (un)register (diff)
downloadkernel-qcow2-linux-70e483487db787b152da756d4be0fef917378142.tar.gz
kernel-qcow2-linux-70e483487db787b152da756d4be0fef917378142.tar.xz
kernel-qcow2-linux-70e483487db787b152da756d4be0fef917378142.zip
iio: add resource managed triggered buffer init helpers
Add resource managed devm_iio_triggered_buffer_setup() and devm_iio_triggered_buffer_cleanup() to automatically clean up triggered buffers setup by IIO drivers, thus leading to simplified IIO drivers code. Signed-off-by: Gregor Boirie <gregor.boirie@parrot.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'include/linux/iio/iio.h')
-rw-r--r--include/linux/iio/iio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/iio/iio.h b/include/linux/iio/iio.h
index 786952cd509f..b4a0679e4a49 100644
--- a/include/linux/iio/iio.h
+++ b/include/linux/iio/iio.h
@@ -644,6 +644,7 @@ static inline struct iio_dev *iio_priv_to_dev(void *priv)
}
void iio_device_free(struct iio_dev *indio_dev);
+int devm_iio_device_match(struct device *dev, void *res, void *data);
struct iio_dev *devm_iio_device_alloc(struct device *dev, int sizeof_priv);
void devm_iio_device_free(struct device *dev, struct iio_dev *indio_dev);
struct iio_trigger *devm_iio_trigger_alloc(struct device *dev,