staging: comedi: pcmuio: cleanup DIO subdevice (*insn_{bits,config})
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 18 Jun 2013 20:25:47 +0000 (13:25 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Jun 2013 22:51:04 +0000 (15:51 -0700)
commit1fdd0fc5fe28cd11ecf64e77892a1d9a1fd89fbf
treea36a21eb6305fefd410830cc195ddaf70fea5743
parent89aaa92adffa5c57d9c2a545c7cb9809ddd3b615
staging: comedi: pcmuio: cleanup DIO subdevice (*insn_{bits,config})

Use the pcmuio_{read,write}() helpers to read/write all 24 channels
instead of handling the digital I/O as three separate ports. This
simplifies both functions with minimal overhead.

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