aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/usb-serial.h
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/usb-serial.h
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/usb-serial.h')
-rw-r--r--drivers/usb/serial/usb-serial.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/usb/serial/usb-serial.h b/drivers/usb/serial/usb-serial.h
index 1cedc1999508..238a5a871ed6 100644
--- a/drivers/usb/serial/usb-serial.h
+++ b/drivers/usb/serial/usb-serial.h
@@ -149,11 +149,8 @@ static inline void usb_set_serial_data (struct usb_serial *serial, void *data)
149 149
150/** 150/**
151 * usb_serial_driver - describes a usb serial driver 151 * usb_serial_driver - describes a usb serial driver
152 * @name: pointer to a string that describes this driver. This string used 152 * @description: pointer to a string that describes this driver. This string used
153 * in the syslog messages when a device is inserted or removed. 153 * in the syslog messages when a device is inserted or removed.
154 * @short_name: a pointer to a string that describes this driver in
155 * KOBJ_NAME_LEN characters or less. This is used for the sysfs interface
156 * to describe the driver.
157 * @id_table: pointer to a list of usb_device_id structures that define all 154 * @id_table: pointer to a list of usb_device_id structures that define all
158 * of the devices this structure can support. 155 * of the devices this structure can support.
159 * @num_interrupt_in: the number of interrupt in endpoints this device will 156 * @num_interrupt_in: the number of interrupt in endpoints this device will
@@ -187,11 +184,12 @@ static inline void usb_set_serial_data (struct usb_serial *serial, void *data)
187 * called, the generic serial function will be used instead. 184 * called, the generic serial function will be used instead.
188 * 185 *
189 * The driver.owner field should be set to the module owner of this driver. 186 * The driver.owner field should be set to the module owner of this driver.
190 * 187 * The driver.name field should be set to the name of this driver (remember
188 * it will show up in sysfs, so it needs to be short and to the point.
189 * Useing the module name is a good idea.)
191 */ 190 */
192struct usb_serial_driver { 191struct usb_serial_driver {
193 char *name; 192 const char *description;
194 char *short_name;
195 const struct usb_device_id *id_table; 193 const struct usb_device_id *id_table;
196 char num_interrupt_in; 194 char num_interrupt_in;
197 char num_interrupt_out; 195 char num_interrupt_out;