Commit 8fc2b132 authored by Rong Wang's avatar Rong Wang Committed by Greg Kroah-Hartman

usb: gadget: udc-core: fix the typo of udc state attribute

commit 1894870e 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: default avatarRong Wang <Rong.Wang@csr.com>
Signed-off-by: default avatarBarry Song <Baohua.Song@csr.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2ff7687b
...@@ -105,7 +105,7 @@ void usb_gadget_set_state(struct usb_gadget *gadget, ...@@ -105,7 +105,7 @@ void usb_gadget_set_state(struct usb_gadget *gadget,
enum usb_device_state state) enum usb_device_state state)
{ {
gadget->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); EXPORT_SYMBOL_GPL(usb_gadget_set_state);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment