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

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
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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,
			    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;
	int lub, glb, temp;
	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,
static int a2150_ai_cmdtest(struct comedi_device *dev,
			    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;
	unsigned int arg;

@@ -710,7 +710,7 @@ static int a2150_attach(struct comedi_device *dev, struct comedi_devconfig *it)
		return -ENODEV;

	dev->board_ptr = a2150_boards + i;
	thisboard = comedi_board(dev);
	thisboard = dev->board_ptr;
	dev->board_name = thisboard->name;

	if ((irq >= 3 && irq <= 7) || (irq >= 9 && irq <= 12) ||