Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 337702
b: refs/heads/master
c: 0464415
h: refs/heads/master
v: v3
  • Loading branch information
Jonathan Cameron committed Nov 10, 2012
1 parent 2cc1d8f commit f9f13c0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 84b36ce5f79c01f792c623f14e92ed86cdccb42f
refs/heads/master: 0464415dd21785aa8e8b12dbc939fcb5ca52f464
1 change: 1 addition & 0 deletions trunk/drivers/iio/inkern.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 2 additions & 0 deletions trunk/include/linux/iio/consumer.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ struct iio_chan_spec;
* struct iio_channel - everything needed for a consumer to use a channel
* @indio_dev: Device on which the channel exists.
* @channel: Full description of the channel.
* @data: Data about the channel used by consumer.
*/
struct iio_channel {
struct iio_dev *indio_dev;
const struct iio_chan_spec *channel;
void *data;
};

/**
Expand Down
2 changes: 2 additions & 0 deletions trunk/include/linux/iio/machine.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@
* @consumer_dev_name: Name to uniquely identify the consumer device.
* @consumer_channel: Unique name used to identify the channel on the
* consumer side.
* @consumer_data: Data about the channel for use by the consumer driver.
*/
struct iio_map {
const char *adc_channel_label;
const char *consumer_dev_name;
const char *consumer_channel;
void *consumer_data;
};

#endif

0 comments on commit f9f13c0

Please sign in to comment.