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

index 5cd396858aa62a14a0a38580d5fd25577321cb42..55d00fd94c91cbdf507fa0489a6b8b30d085050e 100644 (file)
@@ -102,7 +102,7 @@ static int apci1516_do_insn_bits(struct comedi_device *dev,
 
 static int apci1516_reset(struct comedi_device *dev)
 {
-       const struct apci1516_boardinfo *this_board = comedi_board(dev);
+       const struct apci1516_boardinfo *this_board = dev->board_ptr;
        struct apci1516_private *devpriv = dev->private;
 
        if (!this_board->has_wdog)
This page took 0.10074 seconds and 5 git commands to generate.