]> git.openfabrics.org - ~emulex/infiniband.git/commit
staging: comedi: adl_pci9111: cleanup pci9111_do_insn_bits()
authorH Hartley Sweeten <hartleys@visionengravers.com>
Tue, 11 Sep 2012 01:52:58 +0000 (18:52 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Sep 2012 03:02:23 +0000 (20:02 -0700)
commit83dcfee0f2b29e689f79f259bde1c1dc34772b13
treea06b666c79e841f141e0f9a5200c064e7cb9e951
parentbfa6d3b80fe578d6f930107f75b600920d7e74e0
staging: comedi: adl_pci9111: cleanup pci9111_do_insn_bits()

Remove the unnecessary comments.

Cleanup the function to follow the comedi standard for digital
outputs. The 'mask' does not need to be checked, the comedi core
will make sure that it is valid based on the subdevice data.
The outputs only need to be updated if the 'mask' indicates
something is changing, otherwise we just need to return the
current "state" of the outputs.

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