]> git.karo-electronics.de Git - linux-beck.git/commit
staging: comedi: addi_apci_2032: fix the watchdog timer subdevice
authorH Hartley Sweeten <hartleys@visionengravers.com>
Fri, 30 Nov 2012 01:20:19 +0000 (18:20 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 30 Nov 2012 02:05:31 +0000 (18:05 -0800)
commit23fb174746057b6d13539735241390eb9e3fdb46
treefe2ce5cffed991a6366d546611355de540d315b0
parentf82a66132b5df489a56e463b63769f8b27202265
staging: comedi: addi_apci_2032: fix the watchdog timer subdevice

The watchdog timer on this board functions exactly like the one on
the apci_1516 board. Fix the i_APCI2032_StartStopWriteWatchdog and
i_APCI2032_ConfigWatchdo functions so that the watchdog follows the
comedi API.

Rename the CamelCase function i_APCI2032_StartStopWriteWatchdog to
apci2032_wdog_insn_writ. This function is used to "ping" the watchdog.

Rename the CamelCase function i_APCI2032_ConfigWatchdog to
apci2032_wdog_insn_config. This function is used to enable/disable
the watchdog and set the timeout.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/addi_apci_2032.c