Skip to content

Commit a16561c

Browse files
Peter Meerwaldgregkh
authored andcommitted
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>
1 parent 1787948 commit a16561c

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎include/linux/iio/iio.h‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ ssize_t iio_enum_write(struct iio_dev *indio_dev,
196196
/**
197197
* struct iio_chan_spec - specification of a single channel
198198
* @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.
200200
* @channel2: If there is a second number for a differential
201201
* channel then this is it. If modified is set then the
202202
* value here specifies the modifier.
@@ -227,9 +227,8 @@ ssize_t iio_enum_write(struct iio_dev *indio_dev,
227227
* channel2. Examples are IIO_MOD_X for axial sensors about
228228
* the 'x' axis.
229229
* @indexed: Specify the channel has a numerical index. If not,
230-
* the value in channel will be suppressed for attribute
231-
* but not for event codes. Typically set it to 0 when
232-
* the index is false.
230+
* the channel index number will be suppressed for sysfs
231+
* attributes but not for event codes.
233232
* @differential: Channel is differential.
234233
*/
235234
struct iio_chan_spec {

0 commit comments

Comments
 (0)