staging: comedi: adv_pci_dio: replace comedi_board() calls
authorIan Abbott <abbotti@mev.co.uk>
Tue, 9 Sep 2014 10:26:17 +0000 (11:26 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 Sep 2014 21:32:50 +0000 (14:32 -0700)
The `comedi_board(dev)` inline function calls just return
`dev->board_ptr`.  Expand the inline function calls.

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

index 99c8ba7e3b8ee26d826773bed963a876d739caf7..f2e2d7e163bf6d77e9bf1049f94fd4da13f42d73 100644 (file)
@@ -817,7 +817,7 @@ static int pci1760_reset(struct comedi_device *dev)
 */
 static int pci_dio_reset(struct comedi_device *dev)
 {
-       const struct dio_boardtype *this_board = comedi_board(dev);
+       const struct dio_boardtype *this_board = dev->board_ptr;
 
        switch (this_board->cardtype) {
        case TYPE_PCI1730:
@@ -975,7 +975,7 @@ static int pci_dio_add_di(struct comedi_device *dev,
                          struct comedi_subdevice *s,
                          const struct diosubd_data *d)
 {
-       const struct dio_boardtype *this_board = comedi_board(dev);
+       const struct dio_boardtype *this_board = dev->board_ptr;
 
        s->type = COMEDI_SUBD_DI;
        s->subdev_flags = SDF_READABLE | SDF_GROUND | SDF_COMMON | d->specflags;
@@ -1005,7 +1005,7 @@ static int pci_dio_add_do(struct comedi_device *dev,
                          struct comedi_subdevice *s,
                          const struct diosubd_data *d)
 {
-       const struct dio_boardtype *this_board = comedi_board(dev);
+       const struct dio_boardtype *this_board = dev->board_ptr;
 
        s->type = COMEDI_SUBD_DO;
        s->subdev_flags = SDF_WRITABLE | SDF_GROUND | SDF_COMMON;