2 * Copyright (C) 2001-2005 Greg Kroah-Hartman (greg@kroah.com)
3 * Copyright (C) 2009 Outpost Embedded, LLC
6 #include <linux/kernel.h>
7 #include <linux/init.h>
9 #include <linux/module.h>
10 #include <linux/usb.h>
11 #include <linux/usb/serial.h>
14 #define DRIVER_VERSION "v1.0"
15 #define DRIVER_DESC "ViVOpay USB Serial Driver"
17 #define VIVOPAY_VENDOR_ID 0x1d5f
20 static struct usb_device_id id_table [] = {
22 { USB_DEVICE(VIVOPAY_VENDOR_ID, 0x1004) },
26 MODULE_DEVICE_TABLE(usb, id_table);
28 static struct usb_driver vivopay_serial_driver = {
29 .name = "vivopay-serial",
30 .probe = usb_serial_probe,
31 .disconnect = usb_serial_disconnect,
35 static struct usb_serial_driver vivopay_serial_device = {
38 .name = "vivopay-serial",
44 static struct usb_serial_driver * const serial_drivers[] = {
45 &vivopay_serial_device, NULL
48 module_usb_serial_driver(vivopay_serial_driver, serial_drivers);
50 MODULE_AUTHOR("Forest Bond <forest.bond@outpostembedded.com>");
51 MODULE_DESCRIPTION(DRIVER_DESC);
52 MODULE_VERSION(DRIVER_VERSION);
53 MODULE_LICENSE("GPL");