blob: 6299526ff8c35080bf1d639514ad371ac0586a9b [file] [log] [blame]
Forest Bond52720982010-02-05 11:30:28 -05001/*
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
Forest Bond52720982010-02-05 11:30:28 -050013#define DRIVER_DESC "ViVOpay USB Serial Driver"
14
15#define VIVOPAY_VENDOR_ID 0x1d5f
16
17
18static struct usb_device_id id_table [] = {
19 /* ViVOpay 8800 */
20 { USB_DEVICE(VIVOPAY_VENDOR_ID, 0x1004) },
21 { },
22};
23
24MODULE_DEVICE_TABLE(usb, id_table);
25
Forest Bond52720982010-02-05 11:30:28 -050026static struct usb_serial_driver vivopay_serial_device = {
27 .driver = {
28 .owner = THIS_MODULE,
29 .name = "vivopay-serial",
30 },
31 .id_table = id_table,
Forest Bond52720982010-02-05 11:30:28 -050032 .num_ports = 1,
33};
34
Alan Stern29618e92012-02-23 14:57:32 -050035static struct usb_serial_driver * const serial_drivers[] = {
36 &vivopay_serial_device, NULL
37};
38
Greg Kroah-Hartman68e24112012-05-08 15:46:14 -070039module_usb_serial_driver(serial_drivers, id_table);
Forest Bond52720982010-02-05 11:30:28 -050040
41MODULE_AUTHOR("Forest Bond <forest.bond@outpostembedded.com>");
42MODULE_DESCRIPTION(DRIVER_DESC);
Forest Bond52720982010-02-05 11:30:28 -050043MODULE_LICENSE("GPL");