mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
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 <abbotti@mev.co.uk> Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
369f87fadd
commit
da8e2a52be
1 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue