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: H Hartley Sweeten <hsweeten@visionengravers.com> Cc: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>hifive-unleashed-5.1
parent
abbe0796ba
commit
616b7a479e
|
@ -227,11 +227,24 @@ static uint16_t mio_cs_win_in(struct comedi_device *dev, int addr)
|
||||||
|
|
||||||
#include "ni_mio_common.c"
|
#include "ni_mio_common.c"
|
||||||
|
|
||||||
static int ni_getboardtype(struct comedi_device *dev,
|
|
||||||
struct pcmcia_device *link);
|
|
||||||
|
|
||||||
static struct pcmcia_device *cur_dev;
|
static struct pcmcia_device *cur_dev;
|
||||||
|
|
||||||
|
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 int mio_cs_attach(struct comedi_device *dev, struct comedi_devconfig *it)
|
static int mio_cs_attach(struct comedi_device *dev, struct comedi_devconfig *it)
|
||||||
{
|
{
|
||||||
struct ni_private *devpriv;
|
struct ni_private *devpriv;
|
||||||
|
@ -301,22 +314,6 @@ static int mio_cs_attach(struct comedi_device *dev, struct comedi_devconfig *it)
|
||||||
return 0;
|
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)
|
static void mio_cs_detach(struct comedi_device *dev)
|
||||||
{
|
{
|
||||||
mio_common_detach(dev);
|
mio_common_detach(dev);
|
||||||
|
|
Loading…
Reference in New Issue