Re: iio: adis16400 scan mask question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09/17/2013 11:29 PM, Peter Meerwald wrote:
> Hello,
> 
> why the following code in drivers/iio/imu/adis16400_core.c?
> 
> static const unsigned long adis16400_burst_scan_mask[] = {
> 	~0UL,
> 	0,
> };
> 
> [...]
> 
> if (!(st->variant->flags & ADIS16400_NO_BURST))
> 		indio_dev->available_scan_masks = adis16400_burst_scan_mask;
> 
> 
> isn't the all-1 scan mask the same as not applying any scan mask?

A scan mask where all bits are set means that sampling can only be done with
all channels enabled at once. Userspace can still only select a subset of
these channels and the kernel will take care of properly demuxing the stream.

- Lars
--
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




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux