staging: comedi: contec_pci_dio: cleanup contec_do_insn_bits
authorH Hartley Sweeten <hartleys@visionengravers.com>
Thu, 16 Aug 2012 00:32:53 +0000 (17:32 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 Aug 2012 18:30:41 +0000 (11:30 -0700)
commit00d7a906cdd05b76b059102cacf98cfb853fa109
treeb7a83fc62271a3ed436d8343ae01cd6a58c830da
parent8d02b3aa670547f307b50058b2ca1c1fab2518ed
staging: comedi: contec_pci_dio: cleanup contec_do_insn_bits

Create local variables for the mask and bits values passed in
the data pointer to make this function a bit clearer.

Return the state of the output bits (s->state) in data[1] since
this is what comedilib is expecting.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/contec_pci_dio.c