]> git.karo-electronics.de Git - linux-beck.git/commit
staging: comedi: dt9812: convert digital in subdevice to (*insn_bits)
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 14 May 2013 21:32:17 +0000 (14:32 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 May 2013 23:26:01 +0000 (16:26 -0700)
commite81eaba6c425a5d06623e5ad93cb7b3c096e8d5c
treecc35d1674892bb6bd085f0fdc747f529334cccf7
parent421b42ab17bdcabedd7549e5887e4c78d64f6c2f
staging: comedi: dt9812: convert digital in subdevice to (*insn_bits)

Currently the (*insn_read) function for the digital input subdevice
returns the state for a single channel. It's more efficent to use
the (*insn_bits) function and return the state for all the channels.

The comedi core can use the (*insn_bits) to emulate the (*insn_read)
if needed.

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