From: H Hartley Sweeten Date: Tue, 4 Mar 2014 18:30:04 +0000 (-0700) Subject: staging: comedi: pcl816: introduce pcl816_ai_clear_eoc() X-Git-Tag: v3.15-rc1~139^2~639 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97880eaf9b965dd121b8fc2ef0a8fb3f4beaddbe;p=pandora-kernel.git staging: comedi: pcl816: introduce pcl816_ai_clear_eoc() Introduce a helper function to clear the end-of-conversion flag. This flag is set when an analog input conversion is finished and the hardware generates an interrupt request. Writing any value to the register resets the flag and re-enables the interrupt. Move the call in pcl816_ai_cancel() so that the flag is reset after stopping the A/D. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed