]> Pileus Git - ~andy/linux/blob - drivers/usb/serial/vivopay-serial.c
Merge remote-tracking branch 'origin/x86/boot' into x86/mm2
[~andy/linux] / drivers / usb / serial / vivopay-serial.c
1 /*
2  * Copyright (C) 2001-2005 Greg Kroah-Hartman (greg@kroah.com)
3  * Copyright (C) 2009 Outpost Embedded, LLC
4  */
5
6 #include <linux/kernel.h>
7 #include <linux/init.h>
8 #include <linux/tty.h>
9 #include <linux/module.h>
10 #include <linux/usb.h>
11 #include <linux/usb/serial.h>
12
13 #define DRIVER_DESC "ViVOpay USB Serial Driver"
14
15 #define VIVOPAY_VENDOR_ID 0x1d5f
16
17
18 static struct usb_device_id id_table [] = {
19         /* ViVOpay 8800 */
20         { USB_DEVICE(VIVOPAY_VENDOR_ID, 0x1004) },
21         { },
22 };
23
24 MODULE_DEVICE_TABLE(usb, id_table);
25
26 static struct usb_serial_driver vivopay_serial_device = {
27         .driver = {
28                 .owner =        THIS_MODULE,
29                 .name =         "vivopay-serial",
30         },
31         .id_table =             id_table,
32         .num_ports =            1,
33 };
34
35 static struct usb_serial_driver * const serial_drivers[] = {
36         &vivopay_serial_device, NULL
37 };
38
39 module_usb_serial_driver(serial_drivers, id_table);
40
41 MODULE_AUTHOR("Forest Bond <forest.bond@outpostembedded.com>");
42 MODULE_DESCRIPTION(DRIVER_DESC);
43 MODULE_LICENSE("GPL");