]> git.karo-electronics.de Git - karo-tx-linux.git/commit
staging: comedi: mf6x4: introduce a macro to select the AI channel
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 6 Oct 2015 18:11:10 +0000 (11:11 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Oct 2015 05:55:31 +0000 (22:55 -0700)
commitc9ab30239aa33e5d79917303f9c67dff98cc75c3
tree48469a06365c68dbd73601f07be697a7cf095cea
parentea22ae5e13490712d7498194726b5001355fced6
staging: comedi: mf6x4: introduce a macro to select the AI channel

For aesthetics, use a macro to set the bit in the ADCTRL register that
selects an analog input channel.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
 drivers/staging/comedi/drivers/mf6x4.c | 9 +++++----
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/mf6x4.c