]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf9fe28b0bea100d69c7b748883927e521b700ec7
tree11cce298282c5076f774350428f4c631ee3e9f9f
parent67f605dff30d9cb45ce04027bdfc6f841c198470
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