From: H Hartley Sweeten Date: Tue, 13 Nov 2012 20:47:27 +0000 (-0700) Subject: staging: comedi: addi_apci_1516: fix i_APCI1516_StartStopWriteWatchdog() X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~84^2~396 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ff1fa77687052ff36aa141317c45f737057ce5d;p=pandora-kernel.git staging: comedi: addi_apci_1516: fix i_APCI1516_StartStopWriteWatchdog() This function is used by the watchdog subdevice to "ping" the watchdog. Rename the CamelCase function to apci1516_wdog_insn_write. Currently this function does not follow the comed API. INSN_WRITE functions are supposed to write insn->n values. Also, starting and stopping the watchdog is handled by the INSN_CONFIG function. Fix this function so it works like the comedi core expects. Also, since the watchdog needs to be enabled in order to "ping" it, make sure it is enabled before writing to it. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed