summaryrefslogtreecommitdiff
path: root/drivers/iio
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2012-07-09 09:00:00 (GMT)
committerJonathan Cameron <jic23@kernel.org>2012-07-09 17:18:15 (GMT)
commit8c2c6ba6aa8f187b465fab13627566311a0c03fb (patch)
tree9018f545a58ee967a34baf3b5240cd10687ffe60 /drivers/iio
parentf6aea5543021c341f0397b191243fecca98ac595 (diff)
downloadlinux-8c2c6ba6aa8f187b465fab13627566311a0c03fb.tar.xz
staging:iio:ad7793: Use iio_validate_scan_mask_onehot
Only one of the channels of the ad7793 may be sampled at a time. Use the new validate_scan_mask callback and the iio_validate_scan_mask_onehot function to implement this restriction. Previously this was implemented using available_scan_masks, but this requires a individual scan mask for each channel. Also the previous code was adding the scan index of the timestamp channel to each available scan mask, this is not required though since the timestamp channel is not restricted by the available scan masks and can be enabled or disabled independently. So the new code does not have to take care of this. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio')
0 files changed, 0 insertions, 0 deletions