USB: gadget: specify vendor/product id with device parameters
This introduces the device parameters:

usbgadget.product
usbgadget.vendor
usbgadget.manufacturer
usbgadget.productname

These variables are used to configure the USB vendor id, product id,
manufacturer name and product name.

Previously these were configured with arguments to the usbserial
and dfu command. The parameters are device static, so it's nice to
configure it somewhere in the environment instead of when calling
dfu/usbserial. Also when other gadget drivers are added we do not
have to duplicate the option parsing further.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 32f4bd1 commit 62735eec55c5fbe5609d3f0d2217e941d49277be
@Sascha Hauer Sascha Hauer authored on 17 Jul 2014
Showing 8 changed files
View
commands/dfu.c
View
commands/usbserial.c
View
drivers/usb/gadget/dfu.c
View
drivers/usb/gadget/serial.c
View
drivers/usb/gadget/udc-core.c
View
include/usb/dfu.h
View
include/usb/gadget.h
View
include/usb/usbserial.h