diff options
author | Jonathan Cameron <jic23@kernel.org> | 2012-06-30 20:06:00 +0100 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2012-11-10 10:17:27 +0000 |
commit | 0464415dd21785aa8e8b12dbc939fcb5ca52f464 (patch) | |
tree | 36a5fff19aebcf8aa5eeff66ac8d8473a01765e8 /drivers/iio/inkern.c | |
parent | 84b36ce5f79c01f792c623f14e92ed86cdccb42f (diff) | |
download | blackbird-obmc-linux-0464415dd21785aa8e8b12dbc939fcb5ca52f464.tar.gz blackbird-obmc-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/iio/inkern.c')
-rw-r--r-- | drivers/iio/inkern.c | 1 |
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); |