From: H Hartley Sweeten Date: Tue, 13 Nov 2012 20:47:09 +0000 (-0700) Subject: staging: comedi: addi_apci_1516: fix i_APCI1516_ConfigWatchdog() X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~84^2~397 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=158b64973e7854cddefb1f56c3758ed8382f2bc8;p=pandora-kernel.git staging: comedi: addi_apci_1516: fix i_APCI1516_ConfigWatchdog() This function is used by the watchdog subdevice to enable/disable and set the timeout for the watchdog. Rename the CamelCase function to apci1516_wdog_insn_config. Currently this function does not follow the comed API. Recode it so it works like the core expects. data[0] is the configuration id code (INSN_CONFIG_*) for the configuration instruction. Two instructions are supported: INSN_CONFIG_ARM: enables the watchdog and sets the timeout value INSN_CONFIG_DISARM: disables the watchdog Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed