staging: comedi: me4000: cleanup me4000_cnt_insn_config()
authorH Hartley Sweeten <hartleys@visionengravers.com>
Sat, 8 Sep 2012 00:49:37 +0000 (17:49 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 8 Sep 2012 04:54:43 +0000 (21:54 -0700)
commit83eef17c7845d08eb40e5792ed40b387eb555bdd
tree1c404c8a945fbf9803b2ed5bd8ceeba3492ad322
parentdb9132e03054f1332952961ecc0db4fa955a46a5
staging: comedi: me4000: cleanup me4000_cnt_insn_config()

Absorb the cnt_reset and cnt_config helper functions. They are
now both just single line routines.

Remove the printk noise about "Invalid instruction length".

Fix the return value, the value should be the number of data values
used to perform the instruction. The GPCT_RESET instruction only
has one parameter.

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/me4000.c