summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorH Hartley Sweeten <hartleys@visionengravers.com>2012-10-26 02:11:23 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-10-26 20:20:03 +0400
commitec6521a20431723ff4fa15fdefb386184075baa2 (patch)
tree103afd7a5226bee1e1eb062cd1dcc57b1643a5bc /include/linux
parent5e177c453f3dd9e43c7a407f46f8649c47a3614d (diff)
downloadlinux-ec6521a20431723ff4fa15fdefb386184075baa2.tar.xz
staging: comedi: me_daq: cleanup me_dio_insn_bits()
This function only needs to update the output channel state when the 'mask' (data[0]) indicates that the state is changing. It's also supposed to return the state for all the input and output channels in data[1]. This function appears to work correctly but it's coded quite differently form the other comedi drivers. Rework the function so it follows the normal form. Also, use a couple local variables for the mmio addresses used to read/write the dio ports. 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>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions