summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2011-12-08 18:35:53 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2011-12-08 12:17:36 -0800
commit5a2a6e1162d2c63b4bb3e6e3c867f0374e95cd1f (patch)
treef72afd7a582d9eeb009a7b6273158925e4bb5945 /tools/perf/scripts/python/bin
parenta1e44d6ac5577b78ec85833b22d58345b2758ebb (diff)
staging:iio: Fix scan mask update
When updating the scan mask we have to check the actual scan mask for if the channel is already enabled, not the matching scan mask from the available scan masks. The bit will already be set there and as a result the actual scan mask will not get updated and the channel stays disabled. Also fix the return value of iio_scan_el_store which would return 1 instead of the number of bytes written if the channel was already active in the scan mask. Acked-by: Jonathan Cameron <jic23@kernel.org> Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions