aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/usb.h
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2005-10-24 16:24:14 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2005-10-28 19:47:51 -0400
commit4f62efe67f077db17dad03a1d4c9665000a3eb45 (patch)
tree27f1837fd08ce3dccb94a88a5afef6eb1a5ed738 /include/linux/usb.h
parent16f16d117c1eb99451e4c73c87546eef05c66790 (diff)
[PATCH] usbcore: Fix handling of sysfs strings and other attributes
This patch (as592) makes a few small improvements to the way device strings are handled, and it fixes some bugs in a couple of other sysfs attribute routines. (Look at show_configuration_string() to see what I mean.) Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/usb.h')
-rw-r--r--include/linux/usb.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/include/linux/usb.h b/include/linux/usb.h
index c500d6b5a16d..748d04385256 100644
--- a/include/linux/usb.h
+++ b/include/linux/usb.h
@@ -231,7 +231,7 @@ struct usb_interface_cache {
231struct usb_host_config { 231struct usb_host_config {
232 struct usb_config_descriptor desc; 232 struct usb_config_descriptor desc;
233 233
234 char *string; 234 char *string; /* iConfiguration string, if present */
235 /* the interfaces associated with this configuration, 235 /* the interfaces associated with this configuration,
236 * stored in no particular order */ 236 * stored in no particular order */
237 struct usb_interface *interface[USB_MAXINTERFACES]; 237 struct usb_interface *interface[USB_MAXINTERFACES];
@@ -351,9 +351,11 @@ struct usb_device {
351 int have_langid; /* whether string_langid is valid */ 351 int have_langid; /* whether string_langid is valid */
352 int string_langid; /* language ID for strings */ 352 int string_langid; /* language ID for strings */
353 353
354 char *product; 354 /* static strings from the device */
355 char *manufacturer; 355 char *product; /* iProduct string, if present */
356 char *serial; /* static strings from the device */ 356 char *manufacturer; /* iManufacturer string, if present */
357 char *serial; /* iSerialNumber string, if present */
358
357 struct list_head filelist; 359 struct list_head filelist;
358 struct class_device *class_dev; 360 struct class_device *class_dev;
359 struct dentry *usbfs_dentry; /* usbfs dentry entry for the device */ 361 struct dentry *usbfs_dentry; /* usbfs dentry entry for the device */