Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1894870e authored by Rong Wang's avatar Rong Wang Committed by Felipe Balbi
Browse files

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: default avatarRong Wang <Rong.Wang@csr.com>
Signed-off-by: default avatarBarry Song <Baohua.Song@csr.com>
Cc: <stable@kernel.org>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 96edc98e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);