staging: comedi: vmk80xx: replace comedi_board() calls
authorIan Abbott <abbotti@mev.co.uk>
Tue, 9 Sep 2014 10:26:57 +0000 (11:26 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 Sep 2014 21:32:53 +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/vmk80xx.c

index 831c3b702899272582cb3643c0ea0a9c84f202bf..71003416edcfa645b673676af4f6da051ebc6948 100644 (file)
@@ -767,7 +767,7 @@ static int vmk80xx_alloc_usb_buffers(struct comedi_device *dev)
 
 static int vmk80xx_init_subdevices(struct comedi_device *dev)
 {
-       const struct vmk80xx_board *boardinfo = comedi_board(dev);
+       const struct vmk80xx_board *boardinfo = dev->board_ptr;
        struct vmk80xx_private *devpriv = dev->private;
        struct comedi_subdevice *s;
        int n_subd;