]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: ni_tio: convert NI_660x_RTSI_Second_Gate_Select() to a macro
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Thu, 24 Jul 2014 17:14:41 +0000 (10:14 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 27 Jul 2014 18:16:47 +0000 (11:16 -0700)
commitfe4b38be2fb6aa501f5c266dc9c9f21ef4852bfc
tree4843848f4ec7e66609b7368bedd11b78055b2e52
parent11662cdf0932a6c2388b7d32e88b93e77d0357e4
staging: comedi: ni_tio: convert NI_660x_RTSI_Second_Gate_Select() to a macro

The BUG_ON() in this function can never happen.

For aesthetics, rename this CamelCase inline function and convert it into
a simple macro.

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