OSDN Git Service

staging: comedi: amplc_dio200_common: introduce DIO200_GAT_SEL() macro
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 23 Feb 2015 21:57:55 +0000 (14:57 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Mar 2015 02:51:52 +0000 (18:51 -0800)
commit5f907df0302b1d723887926ec7dba39bf1d31da5
tree4f5c80b41736a1c5fea8470b8dc4fb0e0f5c9458
parent1ec7271dbc05542c27956bdd79aca6c4e80ae516
staging: comedi: amplc_dio200_common: introduce DIO200_GAT_SEL() macro

Replace the DIO200_[XYZ]GAT_SEL defines with a macro that returns the
correct register offset.

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/amplc_dio200_common.c