From: H Hartley Sweeten Date: Fri, 20 Sep 2013 23:38:09 +0000 (-0700) Subject: staging: comedi: pcl711: tidy up pcl711_ao_insn() X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~62^2~673 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=871b43cec94066cfbb457daa5f824de1f12330c0;p=pandora-kernel.git staging: comedi: pcl711: tidy up pcl711_ao_insn() For aesthetics, rename this function to help with greps. Introduce a helper function to write the values to the analog output channel registers. Modify the defines for the D/A registers to avoid the ? : tests based on the chan number. Only the final value written needs to be saved for read back. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed