diff options
author | Alec Berg <alecaberg@chromium.org> | 2014-03-19 18:50:00 +0000 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2014-03-22 12:19:07 +0000 |
commit | 2076a20fc1a06f7b0333c62a2bb4eeeac7ed1bcb (patch) | |
tree | b408163617acbff018322b11e39bc11def11f87c /drivers/iio/light | |
parent | 6b9da2e77249bd62bb0902319cfa22398f32c538 (diff) | |
download | talos-op-linux-2076a20fc1a06f7b0333c62a2bb4eeeac7ed1bcb.tar.gz talos-op-linux-2076a20fc1a06f7b0333c62a2bb4eeeac7ed1bcb.zip |
iio: querying buffer scan_mask should return 0/1
Ensure that querying the IIO buffer scan_mask returns a value of
0 or 1. Currently querying the scan mask has the value returned
by test_bit(), which returns either true or false. For some
architectures test_bit() may return -1 for true, which will appear
to return an error when returning from iio_scan_mask_query().
Additionally, it's important for the sysfs interface to consistently
return the same thing when querying the scan_mask.
Signed-off-by: Alec Berg <alecaberg@chromium.org>
Cc: stable@vger.kernel.org
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/light')
0 files changed, 0 insertions, 0 deletions