iio: industrialio-core: Add IIO_OUT type
authorMichael Hennerich <michael.hennerich@analog.com>
Fri, 10 Jun 2011 13:40:48 +0000 (15:40 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 28 Jun 2011 21:47:25 +0000 (14:47 -0700)
commitae19178eacfab141afdd886e002bb80c99dba63a
treefa8e3b7de3aa00f8f0e0dcecc1496c47a116a022
parent88bc30548aae18a39fd5d35cbb160a1ea347b4a7
iio: industrialio-core: Add IIO_OUT type

Add IIO_OUT type for DAC like devices
In case of IIO_OUT make sure the channel device attribute is writable

Ideally we add a flag to iio_chan_spec that tells the core that
the channel device attribute is writable...

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/iio.h
drivers/staging/iio/industrialio-core.c