Skip to content

Commit

Permalink
USB: serial: add support for multi-port simple drivers
Browse files Browse the repository at this point in the history
Add support for multi-port simple drivers.

Signed-off-by: Johan Hovold <johan@kernel.org>
  • Loading branch information
Johan Hovold committed Sep 1, 2014
1 parent 399aa9a commit b9f0403
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/usb/serial/usb-serial-simple.c
Original file line number Diff line number Diff line change
Expand Up @@ -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(), \
{ }, \
Expand All @@ -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() \
Expand Down

0 comments on commit b9f0403

Please sign in to comment.