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>
This commit is contained in:
committed by
Colin Cross
parent
6bb1acf2eb
commit
aecca43f09
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user