Common: usb: Replace Google's VID/PID with ASUS's VID/PID
Bug: 27845654
Change-Id: I6be2138fa4cdc3c21f8d1aa507a08ee160f6a7ee
Reviewed-on: http://mcrd1-22-pc.corpnet.asus/code-review/master/222427
Reviewed-by: JimmyLin <jimmy1_lin@asus.com>
Reviewed-by: Eric5 Ou <eric5_ou@asus.com>
Tested-by: Eric5 Ou <eric5_ou@asus.com>
diff --git a/drivers/usb/gadget/android.c b/drivers/usb/gadget/android.c
index 10350b8..bbf9ac2 100755
--- a/drivers/usb/gadget/android.c
+++ b/drivers/usb/gadget/android.c
@@ -3184,6 +3184,13 @@
* pull-up is enabled immediately. The enumeration is
* reliable with 100 msec delay.
*/
+
+ if((cdev->desc.idVendor== __constant_cpu_to_le16(0x18D1)) &&
+ (cdev->desc.idProduct==__constant_cpu_to_le16(0x4EE7))) {
+ cdev->desc.idVendor = __constant_cpu_to_le16(0x0B05);
+ cdev->desc.idProduct = __constant_cpu_to_le16(0x7770);
+ }
+
list_for_each_entry(conf, &dev->configs, list_item)
list_for_each_entry(f_holder, &conf->enabled_functions,
enabled_list) {