aboutsummaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorAlec Berg <alecaberg@chromium.org>2014-03-19 18:50:00 +0000
committerJiri Slaby <jslaby@suse.cz>2014-05-15 09:55:04 +0200
commitef878b6e73ac392e6bad83713bfd1361c79bdbaf (patch)
tree55b1a35f34a369a06cf6101e7b2e6c37ea95c0f3 /fs
parent209e85195caf1854052f49073cda50a7c1a4cbc8 (diff)
iio: querying buffer scan_mask should return 0/1
commit 2076a20fc1a06f7b0333c62a2bb4eeeac7ed1bcb upstream. 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> Signed-off-by: Jonathan Cameron <jic23@kernel.org> Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions