iio: inkern: add iio_read_channel_offset helper
authorMatt Ranostay <mranostay@gmail.com>
Sat, 24 Sep 2016 06:04:07 +0000 (23:04 -0700)
committerJonathan Cameron <jic23@kernel.org>
Tue, 27 Sep 2016 19:33:02 +0000 (20:33 +0100)
commit0023e67dd8951737588b8af0469446df3ec52afe
tree2d7fdc82668d9964f2b406f7d604e6f37f361ded
parent2a20af722dde611b6b060af18dff651a8db96073
iio: inkern: add iio_read_channel_offset helper

Allow access to underlying channel IIO_CHAN_INFO_OFFSET from a consumer.

Signed-off-by: Matt Ranostay <matt@ranostay.consulting>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/inkern.c
include/linux/iio/consumer.h