From: Ian Abbott Date: Tue, 9 Sep 2014 10:26:37 +0000 (+0100) Subject: staging: comedi: ni_660x: replace comedi_board() calls X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=da8e2a52bed99beca82e3d69566e6d31f0f020f0;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git staging: comedi: ni_660x: 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 --- diff --git a/drivers/staging/comedi/drivers/ni_660x.c b/drivers/staging/comedi/drivers/ni_660x.c index b0b03d4d6081..5b6794c8232e 100644 --- a/drivers/staging/comedi/drivers/ni_660x.c +++ b/drivers/staging/comedi/drivers/ni_660x.c @@ -433,7 +433,7 @@ struct ni_660x_private { static inline unsigned ni_660x_num_counters(struct comedi_device *dev) { - const struct ni_660x_board *board = comedi_board(dev); + const struct ni_660x_board *board = dev->board_ptr; return board->n_chips * counters_per_chip; } @@ -852,7 +852,7 @@ static int ni_660x_allocate_private(struct comedi_device *dev) static int ni_660x_alloc_mite_rings(struct comedi_device *dev) { - const struct ni_660x_board *board = comedi_board(dev); + const struct ni_660x_board *board = dev->board_ptr; struct ni_660x_private *devpriv = dev->private; unsigned i; unsigned j; @@ -870,7 +870,7 @@ static int ni_660x_alloc_mite_rings(struct comedi_device *dev) static void ni_660x_free_mite_rings(struct comedi_device *dev) { - const struct ni_660x_board *board = comedi_board(dev); + const struct ni_660x_board *board = dev->board_ptr; struct ni_660x_private *devpriv = dev->private; unsigned i; unsigned j; @@ -924,7 +924,7 @@ static void ni_660x_select_pfi_output(struct comedi_device *dev, unsigned pfi_channel, unsigned output_select) { - const struct ni_660x_board *board = comedi_board(dev); + const struct ni_660x_board *board = dev->board_ptr; static const unsigned counter_4_7_first_pfi = 8; static const unsigned counter_4_7_last_pfi = 23; unsigned active_chipset = 0;