From: Lars-Peter Clausen Date: Mon, 9 Jul 2012 09:00:00 +0000 (+0100) Subject: iio: Introduce iio_validate_scan_mask_onehot X-Git-Tag: v3.6-rc1~100^2~297^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81636632057cc1bece2531220dd5803036f95ea9;p=pandora-kernel.git iio: Introduce iio_validate_scan_mask_onehot Add a helper function for validating a scan mask for devices where exactly one channel must be selected during sampling. This is a common case among devices which have scan mask restrictions so it makes sense to provide this function in the core. Signed-off-by: Lars-Peter Clausen Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed