patch-2.4.4 linux/drivers/usb/serial/usbserial.c
Next file: linux/drivers/usb/serial/visor.c
Previous file: linux/drivers/usb/serial/usb-serial.h
Back to the patch index
Back to the overall index
- Lines: 37
- Date:
Fri Apr 6 15:51:52 2001
- Orig file:
v2.4.3/linux/drivers/usb/serial/usbserial.c
- Orig date:
Fri Mar 23 11:50:01 2001
diff -u --recursive --new-file v2.4.3/linux/drivers/usb/serial/usbserial.c linux/drivers/usb/serial/usbserial.c
@@ -272,19 +272,24 @@
#include <linux/spinlock.h>
#include <linux/list.h>
#include <linux/smp_lock.h>
+#include <linux/usb.h>
#ifdef CONFIG_USB_SERIAL_DEBUG
- #define DEBUG
+ static int debug = 1;
#else
- #undef DEBUG
+ static int debug;
#endif
-#include <linux/usb.h>
+
+#include "usb-serial.h"
+
/* Module information */
MODULE_AUTHOR("Greg Kroah-Hartman, greg@kroah.com, http://www.kroah.com/linux-usb/");
MODULE_DESCRIPTION("USB Serial Driver");
-#include "usb-serial.h"
+MODULE_PARM(debug, "i");
+MODULE_PARM_DESC(debug, "Debug enabled or not");
+
#define MAX(a,b) (((a)>(b))?(a):(b))
@@ -364,6 +369,7 @@
static struct termios * serial_termios[SERIAL_TTY_MINORS];
static struct termios * serial_termios_locked[SERIAL_TTY_MINORS];
static struct usb_serial *serial_table[SERIAL_TTY_MINORS]; /* initially all NULL */
+
LIST_HEAD(usb_serial_driver_list);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)