[PATCH] USB Serial: move name to driver structure
This fixes up a lot of problems in sysfs with some of the usb serial
drivers, they had incorrect driver names. Also saves a tiny ammount
of memory.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
diff --git a/drivers/usb/serial/io_tables.h b/drivers/usb/serial/io_tables.h
index 28fb0d4..fad561c 100644
--- a/drivers/usb/serial/io_tables.h
+++ b/drivers/usb/serial/io_tables.h
@@ -78,9 +78,9 @@
static struct usb_serial_driver edgeport_2port_device = {
.driver = {
.owner = THIS_MODULE,
+ .name = "edgeport_2",
},
- .name = "Edgeport 2 port adapter",
- .short_name = "edgeport_2",
+ .description = "Edgeport 2 port adapter",
.id_table = edgeport_2port_id_table,
.num_interrupt_in = 1,
.num_bulk_in = 1,
@@ -108,9 +108,9 @@
static struct usb_serial_driver edgeport_4port_device = {
.driver = {
.owner = THIS_MODULE,
+ .name = "edgeport_4",
},
- .name = "Edgeport 4 port adapter",
- .short_name = "edgeport_4",
+ .description = "Edgeport 4 port adapter",
.id_table = edgeport_4port_id_table,
.num_interrupt_in = 1,
.num_bulk_in = 1,
@@ -138,9 +138,9 @@
static struct usb_serial_driver edgeport_8port_device = {
.driver = {
.owner = THIS_MODULE,
+ .name = "edgeport_8",
},
- .name = "Edgeport 8 port adapter",
- .short_name = "edgeport_8",
+ .description = "Edgeport 8 port adapter",
.id_table = edgeport_8port_id_table,
.num_interrupt_in = 1,
.num_bulk_in = 1,