staging:iio: Make read / write attributes for channel values optional.
authorJonathan Cameron <jic23@kernel.org>
Sun, 15 Apr 2012 16:41:30 +0000 (17:41 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Apr 2012 23:38:21 +0000 (16:38 -0700)
commit75a973c7546ffae3b3c3fdb22211f1f59c01b0fa
tree2b606fb16b865a7b878e02a3e7912aafa6adfe8b
parenta8c0ed756574ba5a484cd8238892f88501ff400d
staging:iio: Make read / write attributes for channel values optional.

Until now all channels have had read/write attributes. This patch
allows for channels where we can't actually read the value (or for
output devices, write it!)

v2 introduces separate elements for processed and raw thus removing
some special case code from the core.  Thanks to Lars-Peter for an
excellent suggestion!

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/industrialio-core.c