diff options
author | Rong Wang <Rong.Wang@csr.com> | 2013-07-28 23:01:35 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-08-04 16:51:14 +0800 |
commit | 8fc2b1321b8fb0ed3d80de5303b8db99923bdecf (patch) | |
tree | 7d774721bbf393cd1b64fb6e6a0c48977a61a98a /drivers/usb | |
parent | 2ff7687bca58a839fd36e5a0b167465b4fa8bf51 (diff) | |
download | linux-3.10-8fc2b1321b8fb0ed3d80de5303b8db99923bdecf.tar.gz linux-3.10-8fc2b1321b8fb0ed3d80de5303b8db99923bdecf.tar.bz2 linux-3.10-8fc2b1321b8fb0ed3d80de5303b8db99923bdecf.zip |
usb: gadget: udc-core: fix the typo of udc state attribute
commit 1894870eb4240399fabc6f0cb8c6fff4e6edbe83 upstream.
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>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb')
-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 ffd8fa54110..5514822114a 100644 --- a/drivers/usb/gadget/udc-core.c +++ b/drivers/usb/gadget/udc-core.c @@ -105,7 +105,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); |