]> git.karo-electronics.de Git - linux-beck.git/commit
iio: add resource managed triggered buffer init helpers
authorGregor Boirie <gregor.boirie@parrot.com>
Fri, 2 Sep 2016 18:47:55 +0000 (20:47 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 4 Sep 2016 14:42:46 +0000 (15:42 +0100)
commit70e483487db787b152da756d4be0fef917378142
tree53e07ce3e66eede20b9516083d06f9d5571f4386
parent9083325f1197a6956db17809d74dbe3578dc1005
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>
Documentation/driver-model/devres.txt
drivers/iio/buffer/industrialio-triggered-buffer.c
drivers/iio/industrialio-core.c
include/linux/iio/iio.h
include/linux/iio/triggered_buffer.h