From: Rong Wang Date: Sun, 28 Jul 2013 15:01:35 +0000 (+0800) Subject: usb: gadget: udc-core: fix the typo of udc state attribute X-Git-Tag: upstream/snapshot3+hdmi~4624^2~3^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1894870eb4240399fabc6f0cb8c6fff4e6edbe83;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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 Signed-off-by: Barry Song Cc: Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/gadget/udc-core.c b/drivers/usb/gadget/udc-core.c index c28ac98..13e25f8 100644 --- a/drivers/usb/gadget/udc-core.c +++ b/drivers/usb/gadget/udc-core.c @@ -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);