staging: comedi: remove boardtype macro in the ni_atmio16d driver
authorH Hartley Sweeten <hartleys@visionengravers.com>
Tue, 22 May 2012 23:46:07 +0000 (16:46 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Jun 2012 03:30:04 +0000 (20:30 -0700)
commit27b40b89e83aa3db99e392694c46b053ad804bba
tree9129a4aa32afa42017b2bcab44ac52e6c8337c6c
parent90d662e3f1b42145f6d1ae9e58a423c859ed284d
staging: comedi: remove boardtype macro in the ni_atmio16d driver

The 'boardtype' macro depends on having a local variable with
a magic name. The CodingStyle document suggests not doing this
to avoid confusion. Remove the macro and use the comedi_board()
inline helper to get the dev->board_ptr information.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Cc: Mori Hess <fmhess@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/ni_atmio16d.c