106458e27SJonathan Cameron /* 206458e27SJonathan Cameron * Industrial I/O in kernel access map definitions for board files. 306458e27SJonathan Cameron * 406458e27SJonathan Cameron * Copyright (c) 2011 Jonathan Cameron 506458e27SJonathan Cameron * 606458e27SJonathan Cameron * This program is free software; you can redistribute it and/or modify it 706458e27SJonathan Cameron * under the terms of the GNU General Public License version 2 as published by 806458e27SJonathan Cameron * the Free Software Foundation. 906458e27SJonathan Cameron */ 1006458e27SJonathan Cameron 1106458e27SJonathan Cameron /** 1206458e27SJonathan Cameron * struct iio_map - description of link between consumer and device channels 1306458e27SJonathan Cameron * @adc_channel_label: Label used to identify the channel on the provider. 1406458e27SJonathan Cameron * This is matched against the datasheet_name element 1506458e27SJonathan Cameron * of struct iio_chan_spec. 1606458e27SJonathan Cameron * @consumer_dev_name: Name to uniquely identify the consumer device. 1733e0c249SPeter Meerwald * @consumer_channel: Unique name used to identify the channel on the 1806458e27SJonathan Cameron * consumer side. 1906458e27SJonathan Cameron */ 2006458e27SJonathan Cameron struct iio_map { 2106458e27SJonathan Cameron const char *adc_channel_label; 2206458e27SJonathan Cameron const char *consumer_dev_name; 2306458e27SJonathan Cameron const char *consumer_channel; 2406458e27SJonathan Cameron }; 25