From: Lars-Peter Clausen <lars@metafoo.de>
To: Peter Meerwald <pmeerw@pmeerw.net>
Cc: linux-iio@vger.kernel.org
Subject: Re: iio: adis16400 scan mask question
Date: Wed, 18 Sep 2013 09:22:40 +0200 [thread overview]
Message-ID: <523954C0.5000500@metafoo.de> (raw)
In-Reply-To: <alpine.DEB.2.01.1309172323201.9630@pmeerw.net>
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
next prev parent reply other threads:[~2013-09-18 7:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-17 21:29 iio: adis16400 scan mask question Peter Meerwald
2013-09-18 7:22 ` Lars-Peter Clausen [this message]
2013-09-18 7:41 ` Peter Meerwald
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=523954C0.5000500@metafoo.de \
--to=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=pmeerw@pmeerw.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.