2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-27 06:34:11 +08:00
linux-next/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 USB: include/usb/*.h checkpatch cleanup 2010-05-20 13:21:47 -07:00
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 usb: cdc: ncm constants and structures added 2010-05-20 13:21:39 -07:00
ch9.h USB Gadget: Verify VBUS current before setting the device self-powered bit 2010-10-22 10:21:20 -07:00
ch11.h USB: export the new ch11.h file to userspce 2010-05-20 13:21:40 -07:00
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 USB: gadget: add HID gadget driver 2010-05-20 13:21:35 -07:00
g_printer.h
gadget.h USB: include/usb/*.h checkpatch cleanup 2010-05-20 13:21:47 -07:00
gadgetfs.h USB: include/usb/*.h checkpatch cleanup 2010-05-20 13:21:47 -07:00
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 USB: export the new ch11.h file to userspce 2010-05-20 13:21:40 -07:00
langwell_otg.h usb: Add Intel Langwell USB OTG Transceiver Driver 2010-10-22 10:21:17 -07:00
langwell_udc.h USB: include/usb/*.h checkpatch cleanup 2010-05-20 13:21:47 -07:00
m66592.h
midi.h
musb.h USB: include/usb/*.h checkpatch cleanup 2010-05-20 13:21:47 -07:00
ncm.h USB: ncm: added ncm.h with auxiliary definitions 2010-05-20 13:21:39 -07:00
net2280.h USB: include/usb/*.h checkpatch cleanup 2010-05-20 13:21:47 -07:00
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 USB: include/usb/*.h checkpatch cleanup 2010-05-20 13:21:47 -07:00
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 USB: include/usb/*.h checkpatch cleanup 2010-05-20 13:21:47 -07:00
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 USB: include/usb/*.h checkpatch cleanup 2010-05-20 13:21:47 -07:00
wusb.h