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

index 2632a3b95330627244a2611b65d61b4d9d803c8b..963c5d868b8116f155e6b6ee12e747730128e2ac 100644 (file)
@@ -29,7 +29,7 @@
 
 static void pc236_intr_update(struct comedi_device *dev, bool enable)
 {
-       const struct pc236_board *thisboard = comedi_board(dev);
+       const struct pc236_board *thisboard = dev->board_ptr;
        struct pc236_private *devpriv = dev->private;
        unsigned long flags;
 
@@ -49,7 +49,7 @@ static void pc236_intr_update(struct comedi_device *dev, bool enable)
  */
 static bool pc236_intr_check(struct comedi_device *dev)
 {
-       const struct pc236_board *thisboard = comedi_board(dev);
+       const struct pc236_board *thisboard = dev->board_ptr;
        struct pc236_private *devpriv = dev->private;
        bool retval = false;
        unsigned long flags;