1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17#include <linux/kernel.h>
18#include <linux/init.h>
19#include <linux/tty.h>
20#include <linux/module.h>
21#include <linux/usb.h>
22#include <linux/usb/serial.h>
23
24static const struct usb_device_id id_table[] = {
25 { USB_DEVICE(0x05c6, 0x3197) },
26 { USB_DEVICE(0x0c44, 0x0022) },
27 { USB_DEVICE(0x22b8, 0x2a64) },
28 { USB_DEVICE(0x22b8, 0x2c84) },
29 { USB_DEVICE(0x22b8, 0x2c64) },
30 { },
31};
32MODULE_DEVICE_TABLE(usb, id_table);
33
34static struct usb_serial_driver moto_device = {
35 .driver = {
36 .owner = THIS_MODULE,
37 .name = "moto-modem",
38 },
39 .id_table = id_table,
40 .num_ports = 1,
41};
42
43static struct usb_serial_driver * const serial_drivers[] = {
44 &moto_device, NULL
45};
46
47module_usb_serial_driver(serial_drivers, id_table);
48MODULE_LICENSE("GPL");
49