]> git.karo-electronics.de Git - karo-tx-linux.git/blob - drivers/usb/serial/vivopay-serial.c
Merge tag 'docs' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
[karo-tx-linux.git] / 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
14 #define DRIVER_VERSION "v1.0"
15 #define DRIVER_DESC "ViVOpay USB Serial Driver"
16
17 #define VIVOPAY_VENDOR_ID 0x1d5f
18
19
20 static struct usb_device_id id_table [] = {
21         /* ViVOpay 8800 */
22         { USB_DEVICE(VIVOPAY_VENDOR_ID, 0x1004) },
23         { },
24 };
25
26 MODULE_DEVICE_TABLE(usb, id_table);
27
28 static struct usb_serial_driver vivopay_serial_device = {
29         .driver = {
30                 .owner =        THIS_MODULE,
31                 .name =         "vivopay-serial",
32         },
33         .id_table =             id_table,
34         .num_ports =            1,
35 };
36
37 static struct usb_serial_driver * const serial_drivers[] = {
38         &vivopay_serial_device, NULL
39 };
40
41 module_usb_serial_driver(serial_drivers, id_table);
42
43 MODULE_AUTHOR("Forest Bond <forest.bond@outpostembedded.com>");
44 MODULE_DESCRIPTION(DRIVER_DESC);
45 MODULE_VERSION(DRIVER_VERSION);
46 MODULE_LICENSE("GPL");