提交 b9f04038 编写于 作者: J Johan Hovold

USB: serial: add support for multi-port simple drivers

Add support for multi-port simple drivers.
Signed-off-by: NJohan Hovold <johan@kernel.org>
上级 399aa9a7
......@@ -20,7 +20,7 @@
#include <linux/usb.h>
#include <linux/usb/serial.h>
#define DEVICE(vendor, IDS) \
#define DEVICE_N(vendor, IDS, nport) \
static const struct usb_device_id vendor##_id_table[] = { \
IDS(), \
{ }, \
......@@ -31,9 +31,10 @@ static struct usb_serial_driver vendor##_device = { \
.name = #vendor, \
}, \
.id_table = vendor##_id_table, \
.num_ports = 1, \
.num_ports = nport, \
};
#define DEVICE(vendor, IDS) DEVICE_N(vendor, IDS, 1)
/* ZIO Motherboard USB driver */
#define ZIO_IDS() \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册