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>
This commit is contained in:
parent
96edc98e78
commit
1894870eb4
|
@ -109,7 +109,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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue