From: H Hartley Sweeten Date: Tue, 1 Oct 2013 00:54:08 +0000 (-0700) Subject: staging: comedi: ni_at_ao: tidy up atao_ao_winsn() X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~62^2~486 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8305aac35741009a0946eb1fe536bec11e8e12cb;p=pandora-kernel.git staging: comedi: ni_at_ao: tidy up atao_ao_winsn() For aesthetics, rename this function to help with greps. For channel 0, register group 1 only needs to be selected before writing the values and restored to group 0 when the writes are finished. Move the code out of the for () loop. Use the comedi_ffset_munge() helper to handle the offset binary to two's complement munging. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed