staging: comedi: ke_counter: add ability to select counter clock source
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Thu, 29 May 2014 17:45:52 +0000 (10:45 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Jun 2014 21:47:07 +0000 (14:47 -0700)
commitf40c283a170a2c817b4eb3616adb3f86b4577f49
treef6ee2fd5ed1b3d6e99d8275bbd5170f90e9bb402
parent3e18c5284ad4ba93eafd1f1f528bff21a962e5d0
staging: comedi: ke_counter: add ability to select counter clock source

Add an (*insn_config) to the counter subdevice to allow the user to select
the clock source for the counters using the INSN_CONFIG_SET_CLOCK_SRC
instruction. The current selection can be queried with the instruction
INSN_CONFIG_GET_CLOCK_SRC.

Also, handle the INSN_CONFIG_RESET instruction to reset all the counters.

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