updated some comments
authorFrank Mori Hess <fmhess@speakeasy.net>
Thu, 1 Mar 2001 18:33:21 +0000 (18:33 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Thu, 1 Mar 2001 18:33:21 +0000 (18:33 +0000)
comedi/drivers/skel.c

index 00e67019865548fc36baa9689f49d17ce1ecb081..609055873f63433705c2c45876ddd6b509c4915f 100644 (file)
@@ -104,9 +104,12 @@ comedi_driver driver_skel={
        module:         THIS_MODULE,
        attach:         skel_attach,
        detach:         skel_detach,
+/* It is not necessary to implement the following members if you are
+ * writing a driver for a plug and play card.
+ */
 //     recognize:      skel_recognize,
        register_boards:        skel_register_boards,   // replacement for recognize
-       /* comedi uses num_boards to allocate the board_name and board_id members
+       /* comedi uses num_names to allocate the board_name and board_id members
         * of this struct
         */
        num_names:              sizeof(skel_boards) / sizeof(skel_board),
@@ -141,10 +144,10 @@ static int skel_recognize(char *name)
  * recognize a board name.  The job of register_boards is to
  * initialize the board_name and board_id members of
  * the the comedi_driver_struct for this driver.  The arrays
- * will have already been allocated with num_boards elements
- * (your driver must initialize the num_boards member of your
- * comedi_driver struct)
- * by comedi_driver_register() in the drivers.c file.
+ * will have already been allocated with num_names elements
+ * (your driver must initialize the num_names member of your
+ * comedi_driver struct) by comedi_driver_register()
+ * in the drivers.c file.
  */
 static void skel_register_boards(void)
 {