> > index to a negative number, which will cause iio_buffer_register to ignore > > the > > channel. ah, nice, I wondered about the same thing :) > > --- a/drivers/iio/industrialio-buffer.c > > +++ b/drivers/iio/industrialio-buffer.c > > @@ -285,6 +285,9 @@ int iio_buffer_register(struct iio_dev *indio_dev, > > if (channels) { > > /* new magic */ > > for (i = 0; i< num_channels; i++) { > > + if (channels[i].scan_index< 0) > > + continue; > > + > > /* Establish necessary mask length */ > > if (channels[i].scan_index> > > (int)indio_dev->masklength - 1) whitespace before/after < could be improved -- Peter Meerwald +43-664-2444418 (mobile) -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html