From: H Hartley Sweeten Date: Tue, 11 Nov 2014 23:55:27 +0000 (-0700) Subject: staging: comedi: dmm32at: introduce dmm32at_ai_set_chanspec() X-Git-Tag: omap-for-v3.19/fixes-rc1~73^2~142 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5f1b1e5529ef46769615ac8f4e38d0830b5a9c0;p=pandora-kernel.git staging: comedi: dmm32at: introduce dmm32at_ai_set_chanspec() Introduce a helper function to set the analog input channel scan and range control registers. Use the new helper in the analog input (*insn_read) and (*do_cmd) functions. The extra sanity checks in the (*do_cmd) are not necessary. The cmd->chanlist will always be valid and the (*do_cmdtest) validates the channel list in Step 5. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed