]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: ni_tio: tidy up ni_gpct_device_{construct,destroy)()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Thu, 24 Jul 2014 17:14:51 +0000 (10:14 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 27 Jul 2014 18:16:48 +0000 (11:16 -0700)
commited2cfec42d35a71ca49ebf750852f9e2cb7e4fb3
tree4f8b653b0e3195056520d555c5560fde2a2025eb
parente9cf9d2f5bd0f809e10a4544e53d71b4b6d9852b
staging: comedi: ni_tio: tidy up ni_gpct_device_{construct,destroy)()

For aesthetics, move these exported functions to the end of the file.

Tidy up the functions a bit and remove the BUG_ON when (num_counters == 0).

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