]> git.karo-electronics.de Git - linux-beck.git/commit
iio: inkern: add helpers to query available values from channels
authorPeter Rosin <peda@axentia.se>
Tue, 8 Nov 2016 11:58:52 +0000 (12:58 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sun, 13 Nov 2016 11:40:26 +0000 (11:40 +0000)
commit00c5f80c2fad5368cd5bfa6c9d90e75a9041ac16
tree87425443e5163ef59ab05fbc378d293c34e465d9
parent51239600074bc9979b0a0e83b72c726d7dcc3132
iio: inkern: add helpers to query available values from channels

Specifically a helper for reading the available maximum raw value of a
channel and a helper for forwarding read_avail requests for raw values
from one iio driver to an iio channel that is consumed.

These rather specific helpers are in turn built with generic helpers
making it easy to build more helpers for available values as needed.

Signed-off-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/inkern.c
include/linux/iio/consumer.h
include/linux/iio/iio.h