From 369f87fadd8041eea33dcd2ce3c57be6c3010162 Mon Sep 17 00:00:00 2001 From: Ian Abbott Date: Tue, 9 Sep 2014 11:26:36 +0100 Subject: [PATCH] staging: comedi: ni_65xx: replace comedi_board() calls The `comedi_board(dev)` inline function calls just return `dev->board_ptr`. Expand the inline function calls. Signed-off-by: Ian Abbott Reviewed-by: H Hartley Sweeten Signed-off-by: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_65xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/comedi/drivers/ni_65xx.c b/drivers/staging/comedi/drivers/ni_65xx.c index 63a33de75679..3b642861eb36 100644 --- a/drivers/staging/comedi/drivers/ni_65xx.c +++ b/drivers/staging/comedi/drivers/ni_65xx.c @@ -294,7 +294,7 @@ MODULE_PARM_DESC(legacy_invert_outputs, static unsigned int ni_65xx_num_ports(struct comedi_device *dev) { - const struct ni_65xx_board *board = comedi_board(dev); + const struct ni_65xx_board *board = dev->board_ptr; return board->num_dio_ports + board->num_di_ports + board->num_do_ports; } -- 2.20.1