iio: Introduce iio_validate_scan_mask_onehot
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 9 Jul 2012 09:00:00 +0000 (10:00 +0100)
committerJonathan Cameron <jic23@kernel.org>
Mon, 9 Jul 2012 17:18:15 +0000 (18:18 +0100)
commit81636632057cc1bece2531220dd5803036f95ea9
tree6c1d73dbc88d32e49a2c5b44423a972a9b8da0c0
parent939546d1a9f47ed169554c711e1e05965b84ffe1
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 <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/industrialio-buffer.c
include/linux/iio/buffer.h
This page took 0.025426 seconds and 5 git commands to generate.