Commit 02cf9703 authored by Ian Abbott's avatar Ian Abbott Committed by Greg Kroah-Hartman

staging: comedi: ni_at_a2150: replace comedi_board() calls

The `comedi_board(dev)` inline function calls just return
`dev->board_ptr`.  Expand the inline function calls.
Signed-off-by: default avatarIan Abbott <abbotti@mev.co.uk>
Reviewed-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent da8e2a52
...@@ -287,7 +287,7 @@ static int a2150_cancel(struct comedi_device *dev, struct comedi_subdevice *s) ...@@ -287,7 +287,7 @@ static int a2150_cancel(struct comedi_device *dev, struct comedi_subdevice *s)
static int a2150_get_timing(struct comedi_device *dev, unsigned int *period, static int a2150_get_timing(struct comedi_device *dev, unsigned int *period,
unsigned int flags) unsigned int flags)
{ {
const struct a2150_board *thisboard = comedi_board(dev); const struct a2150_board *thisboard = dev->board_ptr;
struct a2150_private *devpriv = dev->private; struct a2150_private *devpriv = dev->private;
int lub, glb, temp; int lub, glb, temp;
int lub_divisor_shift, lub_index, glb_divisor_shift, glb_index; int lub_divisor_shift, lub_index, glb_divisor_shift, glb_index;
...@@ -436,7 +436,7 @@ static int a2150_ai_check_chanlist(struct comedi_device *dev, ...@@ -436,7 +436,7 @@ static int a2150_ai_check_chanlist(struct comedi_device *dev,
static int a2150_ai_cmdtest(struct comedi_device *dev, static int a2150_ai_cmdtest(struct comedi_device *dev,
struct comedi_subdevice *s, struct comedi_cmd *cmd) struct comedi_subdevice *s, struct comedi_cmd *cmd)
{ {
const struct a2150_board *thisboard = comedi_board(dev); const struct a2150_board *thisboard = dev->board_ptr;
int err = 0; int err = 0;
unsigned int arg; unsigned int arg;
...@@ -710,7 +710,7 @@ static int a2150_attach(struct comedi_device *dev, struct comedi_devconfig *it) ...@@ -710,7 +710,7 @@ static int a2150_attach(struct comedi_device *dev, struct comedi_devconfig *it)
return -ENODEV; return -ENODEV;
dev->board_ptr = a2150_boards + i; dev->board_ptr = a2150_boards + i;
thisboard = comedi_board(dev); thisboard = dev->board_ptr;
dev->board_name = thisboard->name; dev->board_name = thisboard->name;
if ((irq >= 3 && irq <= 7) || (irq >= 9 && irq <= 12) || if ((irq >= 3 && irq <= 7) || (irq >= 9 && irq <= 12) ||
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment