diff options
author | Rong Wang <Rong.Wang@csr.com> | 2013-07-28 19:01:35 +0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-07-29 15:15:38 +0400 |
commit | 1894870eb4240399fabc6f0cb8c6fff4e6edbe83 (patch) | |
tree | 7a721ca2dddbd8c82835be6a12a608c585e5b4d5 /drivers | |
parent | 96edc98e7894a7ac5a1cb3c6059455304a6cde6a (diff) | |
download | linux-1894870eb4240399fabc6f0cb8c6fff4e6edbe83.tar.xz |
usb: gadget: udc-core: fix the typo of udc state attribute
The name of udc state attribute file under sysfs is registered as
"state", while usb_gadget_set_state take it as "status" when it's
going to update. This patch fixes the typo.
Signed-off-by: Rong Wang <Rong.Wang@csr.com>
Signed-off-by: Barry Song <Baohua.Song@csr.com>
Cc: <stable@kernel.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/gadget/udc-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/udc-core.c b/drivers/usb/gadget/udc-core.c index c28ac9872030..13e25f80fc20 100644 --- a/drivers/usb/gadget/udc-core.c +++ b/drivers/usb/gadget/udc-core.c @@ -109,7 +109,7 @@ void usb_gadget_set_state(struct usb_gadget *gadget, enum usb_device_state state) { gadget->state = state; - sysfs_notify(&gadget->dev.kobj, NULL, "status"); + sysfs_notify(&gadget->dev.kobj, NULL, "state"); } EXPORT_SYMBOL_GPL(usb_gadget_set_state); |