aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/visor.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2005-06-21 00:15:16 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2005-10-28 19:47:48 -0400
commit269bda1c123c7caf88e1deb2264f9086f0344192 (patch)
treec83d9944e0acdc40c9040cbccfb9ec7d606bdd2c /drivers/usb/serial/visor.c
parent502b95c1cc9e2c855a26f90fc999c5211b8ba957 (diff)
[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>
Diffstat (limited to 'drivers/usb/serial/visor.c')
-rw-r--r--drivers/usb/serial/visor.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/usb/serial/visor.c b/drivers/usb/serial/visor.c
index 39ad0cab8635..baa2acb28bd8 100644
--- a/drivers/usb/serial/visor.c
+++ b/drivers/usb/serial/visor.c
@@ -185,9 +185,9 @@ static struct usb_driver visor_driver = {
185static struct usb_serial_driver handspring_device = { 185static struct usb_serial_driver handspring_device = {
186 .driver = { 186 .driver = {
187 .owner = THIS_MODULE, 187 .owner = THIS_MODULE,
188 .name = "visor",
188 }, 189 },
189 .name = "Handspring Visor / Palm OS", 190 .description = "Handspring Visor / Palm OS",
190 .short_name = "visor",
191 .id_table = id_table, 191 .id_table = id_table,
192 .num_interrupt_in = NUM_DONT_CARE, 192 .num_interrupt_in = NUM_DONT_CARE,
193 .num_bulk_in = 2, 193 .num_bulk_in = 2,
@@ -215,9 +215,9 @@ static struct usb_serial_driver handspring_device = {
215static struct usb_serial_driver clie_5_device = { 215static struct usb_serial_driver clie_5_device = {
216 .driver = { 216 .driver = {
217 .owner = THIS_MODULE, 217 .owner = THIS_MODULE,
218 .name = "clie_5",
218 }, 219 },
219 .name = "Sony Clie 5.0", 220 .description = "Sony Clie 5.0",
220 .short_name = "clie_5",
221 .id_table = clie_id_5_table, 221 .id_table = clie_id_5_table,
222 .num_interrupt_in = NUM_DONT_CARE, 222 .num_interrupt_in = NUM_DONT_CARE,
223 .num_bulk_in = 2, 223 .num_bulk_in = 2,
@@ -245,9 +245,9 @@ static struct usb_serial_driver clie_5_device = {
245static struct usb_serial_driver clie_3_5_device = { 245static struct usb_serial_driver clie_3_5_device = {
246 .driver = { 246 .driver = {
247 .owner = THIS_MODULE, 247 .owner = THIS_MODULE,
248 .name = "clie_3.5",
248 }, 249 },
249 .name = "Sony Clie 3.5", 250 .description = "Sony Clie 3.5",
250 .short_name = "clie_3.5",
251 .id_table = clie_id_3_5_table, 251 .id_table = clie_id_3_5_table,
252 .num_interrupt_in = 0, 252 .num_interrupt_in = 0,
253 .num_bulk_in = 1, 253 .num_bulk_in = 1,
@@ -659,7 +659,7 @@ static int palm_os_3_probe (struct usb_serial *serial, const struct usb_device_i
659 break; 659 break;
660 } 660 }
661 dev_info(dev, "%s: port %d, is for %s use\n", 661 dev_info(dev, "%s: port %d, is for %s use\n",
662 serial->type->name, 662 serial->type->description,
663 connection_info->connections[i].port, string); 663 connection_info->connections[i].port, string);
664 } 664 }
665 } 665 }
@@ -668,11 +668,11 @@ static int palm_os_3_probe (struct usb_serial *serial, const struct usb_device_i
668 */ 668 */
669 if (num_ports == 0 || num_ports > 2) { 669 if (num_ports == 0 || num_ports > 2) {
670 dev_warn (dev, "%s: No valid connect info available\n", 670 dev_warn (dev, "%s: No valid connect info available\n",
671 serial->type->name); 671 serial->type->description);
672 num_ports = 2; 672 num_ports = 2;
673 } 673 }
674 674
675 dev_info(dev, "%s: Number of ports: %d\n", serial->type->name, 675 dev_info(dev, "%s: Number of ports: %d\n", serial->type->description,
676 num_ports); 676 num_ports);
677 677
678 /* 678 /*