From: H Hartley Sweeten Date: Thu, 30 Oct 2014 18:32:28 +0000 (-0700) Subject: staging: comedi: rtd520: fix ai_read_n() async->cur_chan use X-Git-Tag: omap-for-v3.19/fixes-rc1~73^2~465 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c8c1c0ad8edce6c0d0a7d78b5ab6cb2ee4722f1;p=pandora-kernel.git staging: comedi: rtd520: fix ai_read_n() async->cur_chan use This functions uses the async->cur_chan to determine if the current channel is using a bipolar range and the sample needs to be munged. The cur_chan is never incremented so all the samples are munged based on the fist channel in the cmd->chanlist. Bump the cur_chan after writing each sample. This fixes the code so that the munging will be done correctly. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed