From: H Hartley Sweeten Date: Sat, 8 Mar 2014 00:31:35 +0000 (-0700) Subject: staging: comedi: ni_mio_common: use cfc_handle_events() X-Git-Tag: v3.15-rc1~139^2~287 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a21eacfeb5809427ec71a073a1801419c55446ca;p=pandora-kernel.git staging: comedi: ni_mio_common: use cfc_handle_events() The ni_event() function in this file is an open coded version of cfc_handle_events() where instead of calling the subdevice (*cancel) function a switch is used to call the function based on the subdevice 'index'. Use the comedi_fc helper function to simplify the code. This also allows removing a couple of the forward declarations. Fix the #ifdef/#endif for the ni_gpct_cancel() foward declaration and around the function. This function is now only referenced by code that is blocked with #ifdef PCIDMA. This source file is included by the ni_atmio, ni_mio_cs, and ni_pcimio drivers. In the Kconfig, the config options for these drivers already select COMEDI_FC. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed