From: H Hartley Sweeten Date: Mon, 14 Jul 2014 19:06:59 +0000 (-0700) Subject: staging: comedi: ni_65xx: tidy up the port<->chan conversions X-Git-Tag: omap-for-v3.17/fixes-against-rc2~166^2~704 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b094a424d64e3e320a2786a2914539471cc408b;p=pandora-kernel.git 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 Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed