diff options
author | Xinyu Chen <xinyu.chen@freescale.com> | 2010-11-08 16:35:50 +0800 |
---|---|---|
committer | Xinyu Chen <xinyu.chen@freescale.com> | 2011-02-12 17:02:07 +0800 |
commit | 480cf012cae06c2ec7f5c83af960ba473e1181bd (patch) | |
tree | 4f6320701410efa38b5328ecb656de8abbeb5bdb /include | |
parent | 54b2f78be418251e5fca14ed21dac12588e12101 (diff) |
ENGR00137990 usb composite: export the usb connection state for android
Export the usb connection state to composite class uevent.
let vold service to capture the uevent of the UMS state change.
USB suspend will make state change, and wakeup the handler thread.
Send uevent in thread to user.
Signed-off-by: Xinyu Chen <xinyu.chen@freescale.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/usb/composite.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/usb/composite.h b/include/linux/usb/composite.h index 02f661c34808..294dc4465550 100644 --- a/include/linux/usb/composite.h +++ b/include/linux/usb/composite.h @@ -345,6 +345,7 @@ struct usb_composite_dev { /* protects at least deactivation count */ spinlock_t lock; + int online; }; extern int usb_string_id(struct usb_composite_dev *c); |