diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2012-10-22 22:15:10 +0200 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2012-10-31 15:11:47 +0200 |
commit | 1616e99d42a8b427b8dcada347ef0ee0df1a1b7b (patch) | |
tree | 2753f0d18e9458c126460a731b309df9e10bb17c /drivers/usb/gadget/goku_udc.h | |
parent | b36c347966160ecfe420cd47a5a1f81ddaffc007 (diff) |
usb: gadget: let f_* use usb_string_ids_tab() where it makes sense
Instead of calling usb_string_id() multiple times I replace it with one
usb_string_ids_tab(). The NULL pointer in struct usb_string with "" and
are not overwritten in fail or unbind case.
The conditional assignment remains because some gadgets recycle the string
ID because the same descriptor (and string ID) is used if we have more
than one config descriptor.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/goku_udc.h')
0 files changed, 0 insertions, 0 deletions