From: H Hartley Sweeten Date: Wed, 12 Aug 2015 20:25:40 +0000 (-0700) Subject: staging: comedi: hwdrv_apci3501: refactor apci3501_read_insn_timer() X-Git-Tag: omap-for-v4.3/fixes-merge-window~44^2~97 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7f909e09fd0cc22499913933c9caee3000423e3;p=pandora-kernel.git staging: comedi: hwdrv_apci3501: refactor apci3501_read_insn_timer() The handling of the ADDIDATA_WATCHDOG and ADDIDATA_TIMER is identical. Refactor this function to use a common code path for both timer modes. Remove the incorrect dev_err() noise. The subdevice is valid but the timer_mode is not supported. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed