OSDN Git Service

staging: comedi: dt282x: fix dt282x_dio_insn_config()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 26 Aug 2013 22:28:51 +0000 (15:28 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Aug 2013 23:59:08 +0000 (16:59 -0700)
commit9b3e5aec9b275a6a7bad48f2dc2c2dcfd38a4779
tree68a48209f1f261c183ad048085a5200982786c12
parentc7fe22f6f6e5715d29bdfca99358001c0dfbdae6
staging: comedi: dt282x: fix dt282x_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/dt282x.c