From: Lars-Peter Clausen Date: Thu, 8 Dec 2011 17:35:53 +0000 (+0100) Subject: staging:iio: Fix scan mask update X-Git-Tag: v3.3-rc1~152^2~101^2~59^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a2a6e1162d2c63b4bb3e6e3c867f0374e95cd1f;p=pandora-kernel.git 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 Signed-off-by: Lars-Peter Clausen Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed