Jonathan Cameron | e27d75d | 2012-02-15 19:48:01 +0000 | [diff] [blame] | 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 | |
Lars-Peter Clausen | 08d6005 | 2012-08-17 16:57:00 +0100 | [diff] [blame] | 11 | #ifndef __LINUX_IIO_MACHINE_H__ |
| 12 | #define __LINUX_IIO_MACHINE_H__ |
| 13 | |
Jonathan Cameron | e27d75d | 2012-02-15 19:48:01 +0000 | [diff] [blame] | 14 | /** |
| 15 | * struct iio_map - description of link between consumer and device channels |
| 16 | * @adc_channel_label: Label used to identify the channel on the provider. |
| 17 | * This is matched against the datasheet_name element |
| 18 | * of struct iio_chan_spec. |
| 19 | * @consumer_dev_name: Name to uniquely identify the consumer device. |
Peter Meerwald | 33e0c24 | 2012-06-15 19:25:25 +0200 | [diff] [blame] | 20 | * @consumer_channel: Unique name used to identify the channel on the |
Jonathan Cameron | e27d75d | 2012-02-15 19:48:01 +0000 | [diff] [blame] | 21 | * consumer side. |
Jonathan Cameron | 0464415 | 2012-06-30 20:06:00 +0100 | [diff] [blame] | 22 | * @consumer_data: Data about the channel for use by the consumer driver. |
Jonathan Cameron | e27d75d | 2012-02-15 19:48:01 +0000 | [diff] [blame] | 23 | */ |
| 24 | struct iio_map { |
| 25 | const char *adc_channel_label; |
| 26 | const char *consumer_dev_name; |
| 27 | const char *consumer_channel; |
Jonathan Cameron | 0464415 | 2012-06-30 20:06:00 +0100 | [diff] [blame] | 28 | void *consumer_data; |
Jonathan Cameron | e27d75d | 2012-02-15 19:48:01 +0000 | [diff] [blame] | 29 | }; |
Lars-Peter Clausen | 08d6005 | 2012-08-17 16:57:00 +0100 | [diff] [blame] | 30 | |
| 31 | #endif |