From: H Hartley Sweeten Date: Tue, 20 Jan 2015 21:53:22 +0000 (-0700) Subject: staging: comedi: adv_pci1710: introduce pci171x_ai_read_sample() X-Git-Tag: fixes-v4.0-rc1~99^2~208 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fd2dae2500d;p=pandora-kernel.git staging: comedi: adv_pci1710: introduce pci171x_ai_read_sample() Introduce a helper function to read an analog input sample, check for channel dropout, and mask the sample to the maxdata of the subdevice. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed