From: Lars-Peter Clausen Date: Mon, 2 Jul 2012 12:52:56 +0000 (+0200) Subject: iio: iio_buffer_register: Use correct channel when calculating masklength X-Git-Tag: v3.6-rc1~100^2~336^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1dc7bee745f74b42685b4b0b0a24895966e545e;p=pandora-kernel.git iio: iio_buffer_register: Use correct channel when calculating masklength The channel set assigned to the iio device is not necessarily the same has the channel set passed to iio_buffer_register. So to avoid possible complications always work with the channel set pass to iio_buffer_register and ignore the channel set assigned to the iio device. Signed-off-by: Lars-Peter Clausen Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed