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

index d4904907bb891a0041eb3c72fa430db4affccb6b..72ec857d073e82b4693cb032db7c43fee85f31b9 100644 (file)
@@ -287,7 +287,7 @@ static int a2150_cancel(struct comedi_device *dev, struct comedi_subdevice *s)
 static int a2150_get_timing(struct comedi_device *dev, unsigned int *period,
                            unsigned int flags)
 {
-       const struct a2150_board *thisboard = comedi_board(dev);
+       const struct a2150_board *thisboard = dev->board_ptr;
        struct a2150_private *devpriv = dev->private;
        int lub, glb, temp;
        int lub_divisor_shift, lub_index, glb_divisor_shift, glb_index;
@@ -436,7 +436,7 @@ static int a2150_ai_check_chanlist(struct comedi_device *dev,
 static int a2150_ai_cmdtest(struct comedi_device *dev,
                            struct comedi_subdevice *s, struct comedi_cmd *cmd)
 {
-       const struct a2150_board *thisboard = comedi_board(dev);
+       const struct a2150_board *thisboard = dev->board_ptr;
        int err = 0;
        unsigned int arg;
 
@@ -710,7 +710,7 @@ static int a2150_attach(struct comedi_device *dev, struct comedi_devconfig *it)
                return -ENODEV;
 
        dev->board_ptr = a2150_boards + i;
-       thisboard = comedi_board(dev);
+       thisboard = dev->board_ptr;
        dev->board_name = thisboard->name;
 
        if ((irq >= 3 && irq <= 7) || (irq >= 9 && irq <= 12) ||