#include <asm/uaccess.h>
#include <linux/usb.h>
#include <linux/ioctl.h>
-
-
+#include "usb-serial.h"
#include "kobil_sct.h"
-//#include "../core/usb-debug.c"
-#ifdef CONFIG_USB_SERIAL_DEBUG
- static int debug = 1;
-#else
- static int debug;
-#endif
-
-#include "usb-serial.h"
+static int debug;
/* Version Information */
#define DRIVER_VERSION "21/05/2004"
if (port->write_urb){
usb_unlink_urb( port->write_urb );
usb_free_urb( port->write_urb );
- port->write_urb = 0;
+ port->write_urb = NULL;
}
if (port->interrupt_in_urb){
usb_unlink_urb (port->interrupt_in_urb);
memcpy (priv->buf + priv->filled, buf, count);
}
- usb_serial_debug_data (__FILE__, __FUNCTION__, count, priv->buf + priv->filled);
+ usb_serial_debug_data(debug, &port->dev, __FUNCTION__, count, priv->buf + priv->filled);
priv->filled = priv->filled + count;
MODULE_DESCRIPTION( DRIVER_DESC );
MODULE_LICENSE( "GPL" );
-MODULE_PARM(debug, "i");
+module_param(debug, bool, S_IRUGO | S_IWUSR);
MODULE_PARM_DESC(debug, "Debug enabled or not");