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

index cbbb29797b839dea86b846df10b55b9e7a3ed29c..d75e5528258c48c38c139d6717bb2521ecc4ce29 100644 (file)
@@ -248,7 +248,7 @@ static unsigned das800_ind_read(struct comedi_device *dev, unsigned reg)
 
 static void das800_enable(struct comedi_device *dev)
 {
-       const struct das800_board *thisboard = comedi_board(dev);
+       const struct das800_board *thisboard = dev->board_ptr;
        struct das800_private *devpriv = dev->private;
        unsigned long irq_flags;
 
@@ -325,7 +325,7 @@ static int das800_ai_do_cmdtest(struct comedi_device *dev,
                                struct comedi_subdevice *s,
                                struct comedi_cmd *cmd)
 {
-       const struct das800_board *thisboard = comedi_board(dev);
+       const struct das800_board *thisboard = dev->board_ptr;
        struct das800_private *devpriv = dev->private;
        int err = 0;
        unsigned int arg;
@@ -398,7 +398,7 @@ static int das800_ai_do_cmdtest(struct comedi_device *dev,
 static int das800_ai_do_cmd(struct comedi_device *dev,
                            struct comedi_subdevice *s)
 {
-       const struct das800_board *thisboard = comedi_board(dev);
+       const struct das800_board *thisboard = dev->board_ptr;
        struct das800_private *devpriv = dev->private;
        struct comedi_async *async = s->async;
        struct comedi_cmd *cmd = &async->cmd;
@@ -633,7 +633,7 @@ static int das800_do_insn_bits(struct comedi_device *dev,
 
 static int das800_probe(struct comedi_device *dev)
 {
-       const struct das800_board *thisboard = comedi_board(dev);
+       const struct das800_board *thisboard = dev->board_ptr;
        int board = thisboard ? thisboard - das800_boards : -EINVAL;
        int id_bits;
        unsigned long irq_flags;
@@ -695,7 +695,7 @@ static int das800_attach(struct comedi_device *dev, struct comedi_devconfig *it)
                return -ENODEV;
        }
        dev->board_ptr = das800_boards + board;
-       thisboard = comedi_board(dev);
+       thisboard = dev->board_ptr;
        dev->board_name = thisboard->name;
 
        if (irq > 1 && irq <= 7) {