usb: gadget: composite: add iSerialNumber to usb_composite_driver
authorAndrzej Pietrasiewicz <andrzej.p@samsung.com>
Thu, 10 May 2012 08:08:00 +0000 (10:08 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 May 2012 19:22:43 +0000 (12:22 -0700)
commitcad4cd8fbde6b2f45b51711260343b3195615c79
treeabe2c3a65dd1843f2c7c4e7d6ccaf9333c26be4b
parent4fffd6e5a24c4df3341d404446e3672bef8cffb7
usb: gadget: composite: add iSerialNumber to usb_composite_driver

Add iSerialNumber to usb_composite_driver to allow setting a default value.
This is useful when the module is compiled-in. Then the composite_bind
is executed at kernel boot and string id for iSerialNumber can be overridden
even if there is no iSerialNumber kernel commandline parameter.
If the string id is not overridden, then get_string will never attempt to
look for the alternative string contents using cdev->serial_override.

Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/composite.c
include/linux/usb/composite.h