Re: [PATCH] iio: querying buffer scan_mask should return 0/1

2014-03-22 Thread Jonathan Cameron
On 19/03/14 18:50, Alec Berg wrote: 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 re

Re: [PATCH] iio: querying buffer scan_mask should return 0/1

2014-03-19 Thread Jonathan Cameron
Ah, an obscure platform used by hardly anyone ;) Oops. Given timing this will be post the merge window, but I'll mark it for stable. On 19/03/14 21:33, Alec Berg wrote: I'm using x86, not sure what other architectures, if any, that it affects. Thanks. On Wed, Mar 19, 2014 at 1:31 PM, Jonath

Re: [PATCH] iio: querying buffer scan_mask should return 0/1

2014-03-19 Thread Jonathan Cameron
On March 19, 2014 6:50:44 PM GMT+00:00, Alec Berg wrote: >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 tr