commit | 1b094a424d64e3e320a2786a2914539471cc408b | [log] [tgz] |
---|---|---|
author | H Hartley Sweeten <hsweeten@visionengravers.com> | Mon Jul 14 12:06:59 2014 -0700 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed Jul 16 13:22:50 2014 -0700 |
tree | 5746d4924a09f4c385b94a10570e6adaac151613 | |
parent | b3e33cd3f83fcb4415a1014a1c8b11c621900ae8 [diff] |
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>