]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: comedi: me4000: replace comedi_board() calls
authorIan Abbott <abbotti@mev.co.uk>
Tue, 9 Sep 2014 10:26:35 +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/me4000.c

index 3b0df6b6502c68a3953d671d61164cf84187637b..e600ce8653fd9679c6b0ee5021e5f1b2c9dc7baa 100644 (file)
@@ -471,7 +471,7 @@ static int me4000_ai_insn_read(struct comedi_device *dev,
                               struct comedi_subdevice *subdevice,
                               struct comedi_insn *insn, unsigned int *data)
 {
-       const struct me4000_board *thisboard = comedi_board(dev);
+       const struct me4000_board *thisboard = dev->board_ptr;
        int chan = CR_CHAN(insn->chanspec);
        int rang = CR_RANGE(insn->chanspec);
        int aref = CR_AREF(insn->chanspec);
@@ -599,7 +599,7 @@ static int me4000_ai_check_chanlist(struct comedi_device *dev,
                                    struct comedi_subdevice *s,
                                    struct comedi_cmd *cmd)
 {
-       const struct me4000_board *board = comedi_board(dev);
+       const struct me4000_board *board = dev->board_ptr;
        unsigned int max_diff_chan = board->ai_diff_nchan;
        unsigned int aref0 = CR_AREF(cmd->chanlist[0]);
        int i;