staging: comedi: adv_pci1723: remove devpriv and this_board macros
authorH Hartley Sweeten <hartleys@visionengravers.com>
Sat, 18 Aug 2012 01:16:53 +0000 (18:16 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Sep 2012 18:20:32 +0000 (11:20 -0700)
commite201ad6dc3272e9731f896c818f0caacbbe9a1c2
tree3220100561553c9731e8c451adb097c0e764534e
parent3b7cc136e1990ddc0a7f07c2a99a3500e51470bc
staging: comedi: adv_pci1723: remove devpriv and this_board macros

The devpriv macro relies on a local variable having a specific name.
Remove it.

The this_board macro in this driver is a bit different in this driver.
In other comedi drivers, this macro returns the dev->board_ptr. In this
driver its simply 'boardtypes' which returns the first boardinfo element.
Remove this macro also by making sure the dev->board_ptr is set in the
pci1723_find_pci_dev() function and using the comedi_board() helper
to get the pointer in pci1723_attach().

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/adv_pci1723.c