Staging: comedi: kcomedilib: simplify comedi_do_insn()
commit3781bc5425f985c2ceffa3b2111e1d0eeb38cc24
authorGreg Kroah-Hartman <gregkh@suse.de>
Mon, 3 May 2010 21:54:34 +0000 (3 14:54 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 11 May 2010 18:36:02 +0000 (11 11:36 -0700)
treefe179fa8f383b480980723cb86d7f31e65177b70
parent88cccef0193a7f8c6a73326404c0b2f9ad27f71a
Staging: comedi: kcomedilib: simplify comedi_do_insn()

Now that we know we are only making 2 different types of instructions,
only handle those two types.

Also make the call a bit more typesafe by passing the correct pointer
type.

Cc: Ian Abbott <abbotti@mev.co.uk>
Cc: Frank Mori Hess <fmhess@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/kcomedilib/kcomedilib_main.c