Re: [PATCH 1/3] usb gadget: Rename husb2dev -> atmel_usba

David Brownell <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
On Wednesday 20 June 2007, Haavard Skinnemoen wrote:
> husb2dev was the internal name of the USB Device Controller on
> AT32AP7000. Rename it to "atmel_usba", which is closer to the official
> name used in documentation and marketing material.
> 
> Signed-off-by: Haavard Skinnemoen <[email protected]>

  Acked-By: David Brownell <[email protected]>

... although you actually renamed it to "atmel_usb_udc".
That's long, but you're only tied with  "g_file_storage".

- Dave


> ---
>  drivers/usb/gadget/ether.c        |    2 +-
>  drivers/usb/gadget/gadget_chips.h |    8 ++++----
>  2 files changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/drivers/usb/gadget/ether.c b/drivers/usb/gadget/ether.c
> index 325bf7c..23e874b 100644
> --- a/drivers/usb/gadget/ether.c
> +++ b/drivers/usb/gadget/ether.c
> @@ -277,7 +277,7 @@ MODULE_PARM_DESC(host_addr, "Host Ethernet Address");
>  #define DEV_CONFIG_CDC
>  #endif
>  
> -#ifdef CONFIG_USB_GADGET_HUSB2DEV
> +#ifdef CONFIG_USB_GADGET_ATMEL_USBA
>  #define DEV_CONFIG_CDC
>  #endif
>  
> diff --git a/drivers/usb/gadget/gadget_chips.h b/drivers/usb/gadget/gadget_chips.h
> index d041b91..96e4dbc 100644
> --- a/drivers/usb/gadget/gadget_chips.h
> +++ b/drivers/usb/gadget/gadget_chips.h
> @@ -75,10 +75,10 @@
>  #define	gadget_is_pxa27x(g)	0
>  #endif
>  
> -#ifdef CONFIG_USB_GADGET_HUSB2DEV
> -#define gadget_is_husb2dev(g)	!strcmp("husb2_udc", (g)->name)
> +#ifdef CONFIG_USB_GADGET_ATMEL_USBA
> +#define gadget_is_atmel_usba(g)	!strcmp("atmel_usba_udc", (g)->name)
>  #else
> -#define gadget_is_husb2dev(g)	0
> +#define gadget_is_atmel_usba(g)	0
>  #endif
>  
>  #ifdef CONFIG_USB_GADGET_S3C2410
> @@ -181,7 +181,7 @@ static inline int usb_gadget_controller_number(struct usb_gadget *gadget)
>  		return 0x16;
>  	else if (gadget_is_mpc8272(gadget))
>  		return 0x17;
> -	else if (gadget_is_husb2dev(gadget))
> +	else if (gadget_is_atmel_usba(gadget))
>  		return 0x18;
>  	else if (gadget_is_fsl_usb2(gadget))
>  		return 0x19;
> -- 
> 1.5.2.1
> 



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.