staging: comedi: ni_atmio: replace comedi_board() calls
authorIan Abbott <abbotti@mev.co.uk>
Tue, 9 Sep 2014 10:26:41 +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_atmio.c

index 2bd9f692a7ae5bd2b73b022bf3b66fde29eef8ce..0c5ff287dcef6451430bbed52eb24f11ce4b9842 100644 (file)
@@ -336,7 +336,7 @@ static int ni_atmio_attach(struct comedi_device *dev,
                return -EIO;
 
        dev->board_ptr = ni_boards + board;
-       boardtype = comedi_board(dev);
+       boardtype = dev->board_ptr;
        dev->board_name = boardtype->name;
 
        /* irq stuff */
This page took 0.029663 seconds and 5 git commands to generate.