]> git.karo-electronics.de Git - linux-beck.git/commit
staging: comedi: remove thisboard macro in the pcmda12 driver
authorH Hartley Sweeten <hartleys@visionengravers.com>
Wed, 23 May 2012 00:42:55 +0000 (17:42 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Jun 2012 03:30:02 +0000 (20:30 -0700)
commit2fbffee0604fd3f6f9e3aa56e3fe1aa061a32ca6
treeb37bd8a249f530a281d4a184b6cdfa159b265e36
parent57bbeb3b9bc32f1ee4b14439e11ed475deab1263
staging: comedi: remove thisboard macro in the pcmda12 driver

The 'thisboard' 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/pcmda12.c