summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJonathan Cameron <jic23@kernel.org>2012-06-30 21:06:00 +0200
committerJonathan Cameron <jic23@kernel.org>2012-11-10 11:17:27 +0100
commit0464415dd21785aa8e8b12dbc939fcb5ca52f464 (patch)
tree36a5fff19aebcf8aa5eeff66ac8d8473a01765e8 /drivers
parentstaging:iio: Add support for multiple buffers (diff)
downloadlinux-0464415dd21785aa8e8b12dbc939fcb5ca52f464.tar.xz
linux-0464415dd21785aa8e8b12dbc939fcb5ca52f464.zip
staging:iio:in kernel users: Add a data field for channel specific info.
Used to allow information about a given channel mapping to be passed through from board files to the consumer drivers. Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/iio/inkern.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/inkern.c b/drivers/iio/inkern.c
index b394621d362c..d55e98fb300e 100644
--- a/drivers/iio/inkern.c
+++ b/drivers/iio/inkern.c
@@ -203,6 +203,7 @@ struct iio_channel *iio_channel_get_all(const char *name)
if (name && strcmp(name, c->map->consumer_dev_name) != 0)
continue;
chans[mapind].indio_dev = c->indio_dev;
+ chans[mapind].data = c->map->consumer_data;
chans[mapind].channel =
iio_chan_spec_from_name(chans[mapind].indio_dev,
c->map->adc_channel_label);