]> git.karo-electronics.de Git - karo-tx-linux.git/commit
staging: comedi: ni_65xx: tidy up the port<->chan conversions
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 14 Jul 2014 19:06:59 +0000 (12:06 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Jul 2014 20:22:50 +0000 (13:22 -0700)
commit1b094a424d64e3e320a2786a2914539471cc408b
tree5746d4924a09f4c385b94a10570e6adaac151613
parentb3e33cd3f83fcb4415a1014a1c8b11c621900ae8
staging: comedi: ni_65xx: tidy up the port<->chan conversions

Introduce some convienence macros to handle the port to channel,
channel to port, and channel mask calculations based on the 8
channels per port of the hardware.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/ni_65xx.c