Re: [PATCH] usb: udc: add gadget state kobject uevent

From: Felipe Balbi
Date: Thu Jul 18 2013 - 07:06:53 EST


On Thu, Jul 18, 2013 at 06:54:38PM +0800, Rong Wang wrote:
> Hi Felipe,
>
> Here's the patch. If you are OK with it, I'll send it to the list formally.
> Thanks.
>
> -------------------------------------------------------------------------------------------------
>
> usb: gadget: udc-core: make udc state attribute name consistent
>
> 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.
> Here it is made consistent as "state".
>
> Signed-off-by: Rong Wang <Rong.Wang@xxxxxxx>
>
> diff --git a/drivers/usb/gadget/udc-core.c b/drivers/usb/gadget/udc-core.c
> index ffd8fa5..5514822 100644
> --- a/drivers/usb/gadget/udc-core.c
> +++ b/drivers/usb/gadget/udc-core.c
> @@ -105,7 +105,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");

just fix the indentation and prevent gmail from mangling the tabs into
spaces, you're good to go :-)

--
balbi

Attachment: signature.asc
Description: Digital signature