From: Paul Cercueil Date: Fri, 15 May 2015 15:18:36 +0000 (+0200) Subject: iio: adis16400: Compute the scan mask from channel indices X-Git-Tag: omap-for-v4.2/wakeirq-drivers-v2^2~2^2~3^2~5^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2a8b623a089d52c199e305e7905829907db8ec8;p=pandora-kernel.git iio: adis16400: Compute the scan mask from channel indices We unfortunately can't use ~0UL for the scan mask to indicate that the only valid scan mask is all channels selected. The IIO core needs the exact mask to work correctly and not a super-set of it. So calculate the masked based on the channels that are available for a particular device. Signed-off-by: Paul Cercueil Signed-off-by: Lars-Peter Clausen Fixes: 5eda3550a3cc ("staging:iio:adis16400: Preallocate transfer message") Cc: Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed