usb: gadget: Add variant of gether_setup to customize the device name
authorMike Lockwood <lockwood@android.com>
Thu, 10 May 2012 08:08:02 +0000 (10:08 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 May 2012 19:26:17 +0000 (12:26 -0700)
commit036e98b2162d1ed361ed6d31ab009764bb507340
treeaabe621c21bd26eb3b6d4d1db39b2ed4caea7c39
parentc3c04b2945eccd8cdc07bbede3090c18dfed43c0
usb: gadget: Add variant of gether_setup to customize the device name

This is needed to avoid name collisions on SoCs that have both usb
gadget and usb host, where usb0 may be the rndis interface or a usb
ethernet adapter.

Signed-off-by: Mike Lockwood <lockwood@android.com>
Signed-off-by: Benoit Goby <benoit@android.com>
[make gether_setup a static inline function]
Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/u_ether.c
drivers/usb/gadget/u_ether.h