staging: comedi: ni_atmio16d: fix atmio16d_dio_insn_config()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 26 Aug 2013 22:29:33 +0000 (15:29 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Aug 2013 23:59:08 +0000 (16:59 -0700)
commitf9f34d57bab010e6f11ec3ebd674b4ff4fc909ee
tree11cce298282c5076f774350428f4c631ee3e9f9f
parent49b71ebab2b40ffec19007e8b4dba6b8f8622f46
staging: comedi: ni_atmio16d: fix atmio16d_dio_insn_config()

This is the (*insn_config) function for a DIO subdevice. It should be
using the data[0] value as the "instruction" to perform on the subdevice.

Use the comedi_dio_insn_config() helper to properly handle instructions.

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