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

index d28d41c978d74ff65e58469d9e785c35ff709723..e97386343a0e2432d91d70109009ce582bac56c9 100644 (file)
@@ -557,7 +557,7 @@ static int dt2801_attach(struct comedi_device *dev, struct comedi_devconfig *it)
 
 havetype:
        dev->board_ptr = boardtypes + type;
-       board = comedi_board(dev);
+       board = dev->board_ptr;
 
        n_ai_chans = probe_number_of_ai_chans(dev);