RE: [PATCH 01/10] usb/gadget: provide a wrapper around SourceSink's setup function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Sebastian,

Which Linux version does this patch apply to?

On Wednesday, October 17, 2012 9:07 PM Sebastian Andrzej Siewior wrote:

<snip>

> 
> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@xxxxxxxxxxxxx>
> ---
>  drivers/usb/gadget/f_sourcesink.c |   70 ++++++++++++++++++++++++--------
> -----
>  1 file changed, 45 insertions(+), 25 deletions(-)
> 
> diff --git a/drivers/usb/gadget/f_sourcesink.c
> b/drivers/usb/gadget/f_sourcesink.c
> index 6ef3ea2..e5c0504 100644
> --- a/drivers/usb/gadget/f_sourcesink.c
> +++ b/drivers/usb/gadget/f_sourcesink.c
> @@ -449,11 +449,14 @@ sourcesink_bind(struct usb_configuration *c, struct
> usb_function *f)
>  	return 0;
>  }
> 
> +static struct usb_function *global_ss_func;
> +
>  static void
>  sourcesink_unbind(struct usb_configuration *c, struct usb_function *f)
>  {
>  	usb_free_all_descriptors(f);
>  	kfree(func_to_ss(f));
> +	global_ss_func = NULL;
>  }
> 

<snip>

Thanks,

AP



--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux