aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2007-11-06 11:43:42 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2007-11-28 16:58:35 -0500
commit7e61559f6199bb387037abfc7d10a893973561fc (patch)
treedd3e8f8cca77077bc4567a047cfe9ee74d100525 /include
parent5fdcd0396be443e36a4e2128f51818acca570ee7 (diff)
USB: keep track of whether interface sysfs files exist
This patch (as1009) solves the problem of multiple registrations for USB sysfs files in a more satisfying way than the existing code. It simply adds a flag to keep track of whether or not the files have been created; that way the files can be created or removed as needed. Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Diffstat (limited to 'include')
-rw-r--r--include/linux/usb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/usb.h b/include/linux/usb.h
index c5c8f169d3cf..416ee7617d9e 100644
--- a/include/linux/usb.h
+++ b/include/linux/usb.h
@@ -157,6 +157,7 @@ struct usb_interface {
157 * bound to */ 157 * bound to */
158 enum usb_interface_condition condition; /* state of binding */ 158 enum usb_interface_condition condition; /* state of binding */
159 unsigned is_active:1; /* the interface is not suspended */ 159 unsigned is_active:1; /* the interface is not suspended */
160 unsigned sysfs_files_created:1; /* the sysfs attributes exist */
160 unsigned needs_remote_wakeup:1; /* driver requires remote wakeup */ 161 unsigned needs_remote_wakeup:1; /* driver requires remote wakeup */
161 162
162 struct device dev; /* interface specific device info */ 163 struct device dev; /* interface specific device info */