From: H Hartley Sweeten Date: Sat, 8 Mar 2014 00:31:33 +0000 (-0700) Subject: staging: comedi: dt282x: use cfc_handle_events() X-Git-Tag: v3.15-rc1~139^2~289 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f21c74fa4cfe675f5e81b7d604212882799f4e6d;p=pandora-kernel.git staging: comedi: dt282x: use cfc_handle_events() Use the comedi_fc helper function to automatically call the subdevice (*cancel) function when needed and call comedi_event(). This also fixes two bugs. 1) the analog input command is canceled due to a buffer overflow without sending an event (@@ -341,7 +340,7 @@). 2) an analog output error causes the command to cancel but the event is reported to the analog input subdevice (@@ -449,15 +447,13 @@). In the Kconfig, COMEDI_DT282X already selects COMEDI_FC. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed