staging:iio: add a raw and processed elements to info_mask
authorJonathan Cameron <jic23@kernel.org>
Sun, 15 Apr 2012 16:41:16 +0000 (17:41 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Apr 2012 23:38:19 +0000 (16:38 -0700)
commit5ccb3adbd7593b69d1355454b0c6d2dffdad51d9
tree59659fba986d46aefb6c1f63a89953576c028cd3
parent35a36e650558855cd76981b73e282874a9c77335
staging:iio: add a raw and processed elements to info_mask

This will allow us to have drivers where the channel value
may not be read or written but other information is available.
Also adds the ability to have both processed and raw access
to a given channel, though in most cases this doesn't make
sense.

Ultimately will lead to simpler code by allowing us to drop
the special case handling for the value reading cases.

Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/iio/iio.h
drivers/staging/iio/industrialio-core.c