From: David Schleef Date: Tue, 7 Nov 2000 20:21:05 +0000 (+0000) Subject: added recognize function X-Git-Tag: r0_7_51~43 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4542b3dcf7ffcf0a1f81f1de06328ab3f4b0bee0;p=comedi.git added recognize function --- diff --git a/comedi/drivers/das16-new.c b/comedi/drivers/das16-new.c index 186c062d..c55b262d 100644 --- a/comedi/drivers/das16-new.c +++ b/comedi/drivers/das16-new.c @@ -386,14 +386,17 @@ static struct das16_board_struct das16_boards[]={ }, #endif }; +#define n_das16_boards ((sizeof(das16_boards))/(sizeof(das16_boards[0]))) static int das16_attach(comedi_device *dev,comedi_devconfig *it); static int das16_detach(comedi_device *dev); +static int das16_recognize(char *name); comedi_driver driver_das16={ driver_name: "das16", module: THIS_MODULE, attach: das16_attach, detach: das16_detach, + recognize: das16_recognize, }; @@ -612,6 +615,19 @@ printk("diobits 0x%02x",diobits); } +static int das16_recognize(char *name) +{ + int i; + + for(i=0;i