staging: comedi: ni_labpc: introduce labpc_ai_set_chan_and_gain()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Fri, 22 Mar 2013 16:48:44 +0000 (09:48 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Mar 2013 18:42:58 +0000 (11:42 -0700)
commit8c2bc333af026bed05a0041b028c34ef9b5c9cab
tree4e50834bf09bf850479a8a5ca9a64f70cd6e1709
parent73f2b1d26f3d97f7c34166d22b30f89dc9cf9402
staging: comedi: ni_labpc: introduce labpc_ai_set_chan_and_gain()

Introduce a helper function to set the channel and gain bits in the
COMMAND1_REG.

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