linux-hardened/include/linux/usb
Michal Nazarewicz ad1a8102f9 USB: gadget: composite: Better string override handling
The iManufatcurer, iProduct and iSerialNumber composite module
parameters were only used when the gadget driver registers
strings for manufacturer, product and serial number.  If the
gadget never bothered to set corresponding fields in USB device
descriptors those module parameters are ignored.

This commit makes the parameters work even if the strings ID
have not been assigned.  It also changes the way IDs are
overridden -- what IDs are overridden is now saved in
usb_composite_dev structure -- which makes it unnecessary to
modify the string tables the way previous code did.

The commit also adds a iProduct and iManufatcurer fields to the
usb_composite_device structure.  If they are set, appropriate
strings are reserved and added to device descriptor.  This makes
it unnecessary for gadget drivers to maintain code for setting
those.  If iProduct is not set it defaults to
usb_composite_device::name; if iManufatcurer is not set
a default "<system> <release> with <gadget-name>" is used.

The last thing is that if needs_serial field of
usb_composite_device is set and user failed to provided
iSerialNumber parameter a warning is issued.

Signed-off-by: Michal Nazarewicz <m.nazarewicz@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-10-22 10:21:23 -07:00
..
association.h
atmel_usba_udc.h
audio-v2.h ALSA: usb-audio: move and add some comments 2010-06-23 16:09:50 +02:00
audio.h ALSA: usb-audio: unify UAC macros and struct names 2010-06-23 16:09:26 +02:00
c67x00.h
cdc.h
ch9.h USB Gadget: Verify VBUS current before setting the device self-powered bit 2010-10-22 10:21:20 -07:00
ch11.h
composite.h USB: gadget: composite: Better string override handling 2010-10-22 10:21:23 -07:00
ehci_def.h USB: EHCI: EHCI 1.1 addendum: preparation 2010-08-10 14:35:35 -07:00
functionfs.h USB: gadget: f_fs: functionfs_add() renamed to functionfs_bind_config() 2010-08-10 14:35:36 -07:00
g_hid.h
g_printer.h
gadget.h
gadgetfs.h
gpio_vbus.h
hcd.h USB: fix race between root-hub wakeup & controller suspend 2010-08-10 14:35:38 -07:00
input.h
iowarrior.h
irda.h
isp116x.h
isp1362.h
isp1760.h
Kbuild
langwell_otg.h usb: Add Intel Langwell USB OTG Transceiver Driver 2010-10-22 10:21:17 -07:00
langwell_udc.h
m66592.h
midi.h
musb.h
ncm.h
net2280.h
otg.h USB: otg/ulpi: extend the generic ulpi driver. 2010-08-10 14:35:40 -07:00
quirks.h USB delay init quirk for logitech Harmony 700-series devices 2010-08-10 14:35:41 -07:00
r8a66597.h
rndis_host.h
serial.h USB: drop tty argument from usb_serial_handle_sysrq_char() 2010-08-21 00:37:39 -07:00
sl811.h
tmc.h
ulpi.h USB: otg/ulpi: extend the generic ulpi driver. 2010-08-10 14:35:40 -07:00
usbnet.h
video.h V4L/DVB: uvc: Move constants and structures definitions to linux/usb/video.h 2010-08-02 16:43:15 -03:00
wusb-wa.h
wusb.h