]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
usb: gadget: udc-core: fix the typo of udc state attribute
authorRong Wang <Rong.Wang@csr.com>
Sun, 28 Jul 2013 15:01:35 +0000 (23:01 +0800)
committerFelipe Balbi <balbi@ti.com>
Mon, 29 Jul 2013 11:15:38 +0000 (14:15 +0300)
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>
drivers/usb/gadget/udc-core.c

index c28ac9872030ab1487a4dd74ffb5ee54af950d67..13e25f80fc201f347784ace2f35c7003850f381a 100644 (file)
@@ -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);