]> git.openfabrics.org - ~shefty/rdma-dev.git/commit
staging: comedi: dt2801: remove 'boardtype' macro
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Sat, 6 Apr 2013 00:36:03 +0000 (17:36 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Apr 2013 17:29:59 +0000 (10:29 -0700)
commit23e79f81ade338d1ca9283895088b5d0f57bc4df
tree25cc00bbfced31bacecb33916dbeb5859fd480b0
parent3cb65d4d9dfe058c58755d5b371f4d071437a6c1
staging: comedi: dt2801: 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/dt2801.c