commit | 626bb280d0516c7b4adee50cdd2b8ea377183f46 | [log] [tgz] |
---|---|---|
author | H Hartley Sweeten <hsweeten@visionengravers.com> | Wed Aug 12 13:25:39 2015 -0700 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Fri Aug 14 18:36:17 2015 -0700 |
tree | 3d70c7e6a9da8da3ba083087e834d7a0ec2e24c2 | |
parent | e078d25639c0f8a5d97c879e276a2eba877dce62 [diff] |
staging: comedi: hwdrv_apci3501: refactor apci3501_write_insn_timer() The handling of the ADDIDATA_WATCHDOG and ADDIDATA_TIMER is identical except for the "stop" operation. Refactor this function to use a common code path for both timer modes. 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>