(patch 9 of 13)
Hi,
Here's a patch for the usb-serial visor driver against 2.2.20-pre2 that
brings it up to the same logic level that is in 2.4.5.
thanks,
greg k-h
diff -Nru a/drivers/usb/serial/visor.c b/drivers/usb/serial/visor.c
--- a/drivers/usb/serial/visor.c Tue Jun 12 22:34:40 2001
+++ b/drivers/usb/serial/visor.c Tue Jun 12 22:34:40 2001
@@ -10,6 +10,9 @@
* (at your option) any later version.
*
* See Documentation/usb/usb-serial.txt for more information on using this driver
+ *
+ * (04/08/2001) gb
+ * Identify version on module load.
*
* (01/21/2000) gkh
* Added write_room and chars_in_buffer, as they were previously using the
@@ -89,18 +92,24 @@
#include <linux/tty_flip.h>
#include <linux/module.h>
#include <linux/spinlock.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"
-
#include "visor.h"
+/*
+ * Version Information
+ */
+#define DRIVER_VERSION "v1.0.0"
+#define DRIVER_AUTHOR "Greg Kroah-Hartman <[EMAIL PROTECTED]>"
+#define DRIVER_DESC "USB HandSpring Visor driver"
+
#define MIN(a,b) (((a)<(b))?(a):(b))
/* function prototypes for a handspring visor */
@@ -149,7 +158,7 @@
#define NUM_URBS 24
-#define URB_TRANSFER_BUFFER_SIZE 64
+#define URB_TRANSFER_BUFFER_SIZE 768
static struct urb *write_urb_pool[NUM_URBS];
static spinlock_t write_urb_pool_lock;
static int bytes_in;
@@ -644,7 +653,10 @@
continue;
}
}
-
+
+ info(DRIVER_VERSION " " DRIVER_AUTHOR);
+ info(DRIVER_DESC);
+
return 0;
}
@@ -677,5 +689,9 @@
module_init(visor_init);
module_exit(visor_exit);
-MODULE_AUTHOR("Greg Kroah-Hartman <[EMAIL PROTECTED]>");
-MODULE_DESCRIPTION("USB HandSpring Visor driver");
+MODULE_AUTHOR( DRIVER_AUTHOR );
+MODULE_DESCRIPTION( DRIVER_DESC );
+
+MODULE_PARM(debug, "i");
+MODULE_PARM_DESC(debug, "Debug enabled or not");
+