summaryrefslogtreecommitdiff
path: root/include/linux/patchkey.h
diff options
context:
space:
mode:
authorH Hartley Sweeten <hsweeten@visionengravers.com>2013-03-07 02:57:51 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-03-11 21:10:16 +0400
commitd99fc2c3723e50c020bc1ca20107ecbf74d02e1f (patch)
tree3c85bf91df9d55cc080d6934805a33eb0016fe39 /include/linux/patchkey.h
parentfff7a2cc99726f3994b9709782bd3e251ceb1023 (diff)
downloadlinux-d99fc2c3723e50c020bc1ca20107ecbf74d02e1f.tar.xz
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 <hsweeten@visionengravers.com> Cc: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/patchkey.h')
0 files changed, 0 insertions, 0 deletions