diff options
author | Mike Lockwood <lockwood@android.com> | 2011-10-01 14:28:31 +0100 |
---|---|---|
committer | Andy Green <andy.green@linaro.org> | 2011-10-02 09:38:56 +0100 |
commit | d090b8c5361357d40c223f84a26ffbec1180c713 (patch) | |
tree | 327d697a9b25f6fbd5e8ebb0179a939fbcf0e1aa /include | |
parent | 73f118861fec07a205e98c0992b87c982e5eebba (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 62e72e3bd2b..7f9000711f4 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. |