diff options
author | Mike Lockwood <lockwood@android.com> | 2011-12-02 13:58:13 +0800 |
---|---|---|
committer | Andy Green <andy.green@linaro.org> | 2011-12-02 13:58:13 +0800 |
commit | 52659233f59517975b9de2d95c94aa6c2fe89d78 (patch) | |
tree | 4c48977adb3cca1b171e8ec766958c9b6de36a7e /include | |
parent | a2c0455534f6381a825d7cc77e47f6518d47b74b (diff) |
USB: gadget: android: Support switching vendor ID when configuration changes
Based on the list of enabled USB functions, we can now switch the vendor ID
as well as the product ID.
Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/usb/android_composite.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/linux/usb/android_composite.h b/include/linux/usb/android_composite.h index f11fc795172..071dee0bc32 100644 --- a/include/linux/usb/android_composite.h +++ b/include/linux/usb/android_composite.h @@ -27,7 +27,12 @@ struct android_usb_function { }; struct android_usb_product { - /* Default product ID. */ + /* Vendor ID for this set of functions. + * Default vendor_id in platform data will be used if this is zero. + */ + __u16 vendor_id; + + /* Product ID for this set of functions. */ __u16 product_id; /* List of function names associated with this product. |