diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2012-09-10 09:01:57 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2012-09-10 09:13:02 -0400 |
commit | d33f74fce3756d51a0203cec3d0d278e3b48d827 (patch) | |
tree | 2037aa5d113165f9d6379d2415b31837cc44e006 /include/linux/usb/composite.h | |
parent | 2d35ee47aaafac152bc4bc5020660ffa1753ab02 (diff) |
usb: gadget: remove string override from struct usb_composite_driver
The struct usb_composite_driver members iProduct, iSerial and
iManufacturer can be entered directly via the string array. There is no
need for them to appear here.
Acked-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'include/linux/usb/composite.h')
-rw-r--r-- | include/linux/usb/composite.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/include/linux/usb/composite.h b/include/linux/usb/composite.h index 5cd110ec0a23..60f8815998bd 100644 --- a/include/linux/usb/composite.h +++ b/include/linux/usb/composite.h | |||
@@ -259,13 +259,6 @@ enum { | |||
259 | /** | 259 | /** |
260 | * struct usb_composite_driver - groups configurations into a gadget | 260 | * struct usb_composite_driver - groups configurations into a gadget |
261 | * @name: For diagnostics, identifies the driver. | 261 | * @name: For diagnostics, identifies the driver. |
262 | * @iProduct: Used as iProduct override if @dev->iProduct is not set. | ||
263 | * If NULL value of @name is taken. | ||
264 | * @iManufacturer: Used as iManufacturer override if @dev->iManufacturer is | ||
265 | * not set. If NULL a default "<system> <release> with <udc>" value | ||
266 | * will be used. | ||
267 | * @iSerialNumber: Used as iSerialNumber override if @dev->iSerialNumber is | ||
268 | * not set. | ||
269 | * @dev: Template descriptor for the device, including default device | 262 | * @dev: Template descriptor for the device, including default device |
270 | * identifiers. | 263 | * identifiers. |
271 | * @strings: tables of strings, keyed by identifiers assigned during @bind | 264 | * @strings: tables of strings, keyed by identifiers assigned during @bind |
@@ -300,9 +293,6 @@ enum { | |||
300 | */ | 293 | */ |
301 | struct usb_composite_driver { | 294 | struct usb_composite_driver { |
302 | const char *name; | 295 | const char *name; |
303 | const char *iProduct; | ||
304 | const char *iManufacturer; | ||
305 | const char *iSerialNumber; | ||
306 | const struct usb_device_descriptor *dev; | 296 | const struct usb_device_descriptor *dev; |
307 | struct usb_gadget_strings **strings; | 297 | struct usb_gadget_strings **strings; |
308 | enum usb_device_speed max_speed; | 298 | enum usb_device_speed max_speed; |
@@ -369,8 +359,6 @@ struct usb_composite_dev { | |||
369 | struct usb_composite_driver *driver; | 359 | struct usb_composite_driver *driver; |
370 | u8 next_string_id; | 360 | u8 next_string_id; |
371 | u8 manufacturer_override; | 361 | u8 manufacturer_override; |
372 | u8 product_override; | ||
373 | u8 serial_override; | ||
374 | 362 | ||
375 | /* the gadget driver won't enable the data pullup | 363 | /* the gadget driver won't enable the data pullup |
376 | * while the deactivation count is nonzero. | 364 | * while the deactivation count is nonzero. |