Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 616b7a47 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman
Browse files

staging: comedi: ni_mio_cs: remove last forward declaration



Move the ni_getboardtype() function to remove the last forward
declaration in this file.

Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent abbe0796
Loading
Loading
Loading
Loading
+15 −18
Original line number Diff line number Diff line
@@ -227,10 +227,23 @@ static uint16_t mio_cs_win_in(struct comedi_device *dev, int addr)

#include "ni_mio_common.c"

static struct pcmcia_device *cur_dev;

static int ni_getboardtype(struct comedi_device *dev,
			   struct pcmcia_device *link);
			   struct pcmcia_device *link)
{
	int i;

static struct pcmcia_device *cur_dev;
	for (i = 0; i < n_ni_boards; i++) {
		if (ni_boards[i].device_id == link->card_id)
			return i;
	}

	dev_err(dev->class_dev,
		"unknown board 0x%04x -- pretend it is a ", link->card_id);

	return 0;
}

static int mio_cs_attach(struct comedi_device *dev, struct comedi_devconfig *it)
{
@@ -301,22 +314,6 @@ static int mio_cs_attach(struct comedi_device *dev, struct comedi_devconfig *it)
	return 0;
}

static int ni_getboardtype(struct comedi_device *dev,
			   struct pcmcia_device *link)
{
	int i;

	for (i = 0; i < n_ni_boards; i++) {
		if (ni_boards[i].device_id == link->card_id)
			return i;
	}

	dev_err(dev->class_dev,
		"unknown board 0x%04x -- pretend it is a ", link->card_id);

	return 0;
}

static void mio_cs_detach(struct comedi_device *dev)
{
	mio_common_detach(dev);