You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
USB serial: add driver pointer to all usb-serial drivers
Every usb serial driver should have a pointer to the corresponding usb driver. So the usb serial core can add a new id not only to the usb serial driver, but also to the usb driver. Also the usb drivers of ark3116, mos7720 and mos7840 missed the flag no_dynamic_id=1. This is added now. Signed-off-by: Johannes Hölzl <johannes.hoelzl@gmx.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
93bacefc4c
commit
d9b1b78773
@@ -1605,12 +1605,21 @@ static void mos7720_shutdown(struct usb_serial *serial)
|
||||
usb_set_serial_data(serial, NULL);
|
||||
}
|
||||
|
||||
static struct usb_driver usb_driver = {
|
||||
.name = "moschip7720",
|
||||
.probe = usb_serial_probe,
|
||||
.disconnect = usb_serial_disconnect,
|
||||
.id_table = moschip_port_id_table,
|
||||
.no_dynamic_id = 1,
|
||||
};
|
||||
|
||||
static struct usb_serial_driver moschip7720_2port_driver = {
|
||||
.driver = {
|
||||
.owner = THIS_MODULE,
|
||||
.name = "moschip7720",
|
||||
},
|
||||
.description = "Moschip 2 port adapter",
|
||||
.usb_driver = &usb_driver,
|
||||
.id_table = moschip_port_id_table,
|
||||
.num_interrupt_in = 1,
|
||||
.num_bulk_in = 2,
|
||||
@@ -1631,13 +1640,6 @@ static struct usb_serial_driver moschip7720_2port_driver = {
|
||||
.read_bulk_callback = mos7720_bulk_in_callback,
|
||||
};
|
||||
|
||||
static struct usb_driver usb_driver = {
|
||||
.name = "moschip7720",
|
||||
.probe = usb_serial_probe,
|
||||
.disconnect = usb_serial_disconnect,
|
||||
.id_table = moschip_port_id_table,
|
||||
};
|
||||
|
||||
static int __init moschip7720_init(void)
|
||||
{
|
||||
int retval;
|
||||
|
||||
Reference in New Issue
Block a user