diff options
Diffstat (limited to 'include/linux/iio/machine.h')
-rw-r--r-- | include/linux/iio/machine.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/include/linux/iio/machine.h b/include/linux/iio/machine.h new file mode 100644 index 000000000000..0b1f19bfdc44 --- /dev/null +++ b/include/linux/iio/machine.h | |||
@@ -0,0 +1,24 @@ | |||
1 | /* | ||
2 | * Industrial I/O in kernel access map definitions for board files. | ||
3 | * | ||
4 | * Copyright (c) 2011 Jonathan Cameron | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify it | ||
7 | * under the terms of the GNU General Public License version 2 as published by | ||
8 | * the Free Software Foundation. | ||
9 | */ | ||
10 | |||
11 | /** | ||
12 | * struct iio_map - description of link between consumer and device channels | ||
13 | * @adc_channel_label: Label used to identify the channel on the provider. | ||
14 | * This is matched against the datasheet_name element | ||
15 | * of struct iio_chan_spec. | ||
16 | * @consumer_dev_name: Name to uniquely identify the consumer device. | ||
17 | * @consumer_channel: Unique name used to idenitify the channel on the | ||
18 | * consumer side. | ||
19 | */ | ||
20 | struct iio_map { | ||
21 | const char *adc_channel_label; | ||
22 | const char *consumer_dev_name; | ||
23 | const char *consumer_channel; | ||
24 | }; | ||