From: H Hartley Sweeten Date: Tue, 20 Jan 2015 21:53:20 +0000 (-0700) Subject: staging: comedi: adv_pci1710: clarify the 'act_chanlist' X-Git-Tag: fixes-v4.0-rc1~99^2~210 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=133dfbfb226db01d0548efcd712ba11c5f208922;p=pandora-kernel.git staging: comedi: adv_pci1710: clarify the 'act_chanlist' This driver saves the channel list of a scan in the private data and uses that list to check analog input samples for data dropout. Currently the channel numbers are shifted 12 bits so that they match the channel number in the samples that are read from the board. All of the shifts make the driver a bit harder to follow. Store the channel numbers directly to the 'act_chanlist' and shift the sample value instead when checking for the dropout. Add a comment for clarity. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed