staging: comedi: vmk80xx: tidy up vmk80xx_cnt_insn_config()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Thu, 22 Jan 2015 00:22:14 +0000 (17:22 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Jan 2015 11:59:14 +0000 (19:59 +0800)
commita4a75b21014bfb4ab977e461e17d2c759472f84b
tree13bad7ca90ad006e97260233b8c5605359e923a8
parent8518a52c4456c697033bf81f0df73c026200ad8e
staging: comedi: vmk80xx: tidy up vmk80xx_cnt_insn_config()

Tidy up this (*insn_config) function to follow the normal format in
comedi drivers.

INSN_CONFIG_RESET instructions do not have any extra parameters (insn->n is
always 1) so the for loop used to write the packet doesn't make any sense.
Remove it and just write the single packet.

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