]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
iio: buffer-callback: allow getting underlying iio_dev
authorMatt Ranostay <mranostay@gmail.com>
Sat, 20 Aug 2016 03:17:02 +0000 (20:17 -0700)
committerJonathan Cameron <jic23@kernel.org>
Sun, 21 Aug 2016 10:47:19 +0000 (11:47 +0100)
commitadca058b56108eb3458165c6a9e5d78558be8b52
tree979cca3ed01fb1ea688b170d34e0d7bfdc5d30a4
parenta4fa6509dda47e51c3582409e8630b24702970c5
iio: buffer-callback: allow getting underlying iio_dev

Add iio_channel_cb_get_iio_dev function to allow getting the
underlying iio_dev. This is useful for setting the trigger of the
consumer ADC device.

Signed-off-by: Matt Ranostay <mranostay@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/buffer/industrialio-buffer-cb.c
include/linux/iio/consumer.h