diff options
author | Peter Meerwald <p.meerwald@bct-electronic.com> | 2012-06-12 09:38:46 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-06-12 17:53:31 -0400 |
commit | a16561c6f713630270b905297f3eedf02db7fa98 (patch) | |
tree | d843b396e99a4da4d734fd8d5bbf64f4ccb6b24a /include/linux/iio | |
parent | 1787948873fd2ca730fb5891b6a2ade510367ace (diff) |
iio: clarify channel and indexed in struct iio_chan_spec
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Acked-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/iio')
-rw-r--r-- | include/linux/iio/iio.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/include/linux/iio/iio.h b/include/linux/iio/iio.h index 01afaa08ff21..9a9e6d52a6de 100644 --- a/include/linux/iio/iio.h +++ b/include/linux/iio/iio.h | |||
@@ -196,7 +196,7 @@ ssize_t iio_enum_write(struct iio_dev *indio_dev, | |||
196 | /** | 196 | /** |
197 | * struct iio_chan_spec - specification of a single channel | 197 | * struct iio_chan_spec - specification of a single channel |
198 | * @type: What type of measurement is the channel making. | 198 | * @type: What type of measurement is the channel making. |
199 | * @channel: What number or name do we wish to assign the channel. | 199 | * @channel: What number do we wish to assign the channel. |
200 | * @channel2: If there is a second number for a differential | 200 | * @channel2: If there is a second number for a differential |
201 | * channel then this is it. If modified is set then the | 201 | * channel then this is it. If modified is set then the |
202 | * value here specifies the modifier. | 202 | * value here specifies the modifier. |
@@ -227,9 +227,8 @@ ssize_t iio_enum_write(struct iio_dev *indio_dev, | |||
227 | * channel2. Examples are IIO_MOD_X for axial sensors about | 227 | * channel2. Examples are IIO_MOD_X for axial sensors about |
228 | * the 'x' axis. | 228 | * the 'x' axis. |
229 | * @indexed: Specify the channel has a numerical index. If not, | 229 | * @indexed: Specify the channel has a numerical index. If not, |
230 | * the value in channel will be suppressed for attribute | 230 | * the channel index number will be suppressed for sysfs |
231 | * but not for event codes. Typically set it to 0 when | 231 | * attributes but not for event codes. |
232 | * the index is false. | ||
233 | * @differential: Channel is differential. | 232 | * @differential: Channel is differential. |
234 | */ | 233 | */ |
235 | struct iio_chan_spec { | 234 | struct iio_chan_spec { |