From: H Hartley Sweeten Date: Mon, 9 Dec 2013 22:30:41 +0000 (-0700) Subject: staging: comedi: pcmmio: cleanup ai_rinsn() X-Git-Tag: v3.14-rc1~150^2~337 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b0fcb59922dae8215ae0380c3a41c5affca02da;p=pandora-kernel.git staging: comedi: pcmmio: cleanup ai_rinsn() Rename this function to have namespace associated with the driver. Refactor the function to remove the extra write to the command register between each ADC conversion. We only need to do one dummy conversion in order to flush the serial ADC. After that each command will return the result of the previous conversion. Define the register map for the analog input registers. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed