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

index 2b730794b9187384a41f62d54080ea40ef6d95f3..be541e5dc47b6ce6af4e90030cbcf73d2c48c7df 100644 (file)
@@ -602,7 +602,7 @@ static int atmio16d_dio_insn_config(struct comedi_device *dev,
 static int atmio16d_attach(struct comedi_device *dev,
                           struct comedi_devconfig *it)
 {
-       const struct atmio16_board_t *board = comedi_board(dev);
+       const struct atmio16_board_t *board = dev->board_ptr;
        struct atmio16d_private *devpriv;
        struct comedi_subdevice *s;
        int ret;