]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: dt282x: remove 'boardtype' macro
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Sat, 6 Apr 2013 00:36:22 +0000 (17:36 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Apr 2013 17:29:59 +0000 (10:29 -0700)
commitb7a53b1d653b67ae32e1701533d53cc87629e5b2
treebb731c5f09ac8a708177e1136a51f0b7da52a15c
parent0a3d5931950090d58a283a41c3b9ff3c1108d8fd
staging: comedi: dt282x: remove 'boardtype' macro

The 'boardtype' macro relies on a local variable having a specific
name and yields a struct derived from that local variable.

Replace the macro with local variables and use the comedi_board()
helper to get the struct as a pointer. Use pointer access when
using the variable.

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