From: H Hartley Sweeten Date: Wed, 6 Mar 2013 22:57:51 +0000 (-0700) Subject: staging: comedi: adl_pci8164: simplify axis register determination X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~137^2~677 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d99fc2c3723e50c020bc1ca20107ecbf74d02e1f;p=pandora-kernel.git staging: comedi: adl_pci8164: simplify axis register determination The low-level i/o functions in this driver simply read/write a register based on the channel in insn->chanspec and an offset. Create a macro, PCI8164_AXIS(), that takes the channel number as a parameter and returns the register value. Remove the switch() statements used to figure out the 'axis_reg' and use the new macro instead. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed