From 5f5805ee7b9da96cd85c035f5b47bf8c9788382b Mon Sep 17 00:00:00 2001 From: Orson Zhai Date: Thu, 23 Apr 2020 02:05:25 +0800 Subject: [PATCH] ANDROID: GKI: USB: Add vendor specified variables to hc_driver These data is used by Android vendor for specific purpose. Bug: 154693739 Change-Id: I6fa39d3e79168105103a1a5ed67d1e690a599c1b Signed-off-by: Orson Zhai --- include/linux/usb/hcd.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/usb/hcd.h b/include/linux/usb/hcd.h index c5b171d95059..d4c80696ee38 100644 --- a/include/linux/usb/hcd.h +++ b/include/linux/usb/hcd.h @@ -415,7 +415,8 @@ struct hc_driver { int (*find_raw_port_number)(struct usb_hcd *, int); /* Call for power on/off the port if necessary */ int (*port_power)(struct usb_hcd *hcd, int portnum, bool enable); - + /* Android vendor reserved */ + unsigned long android_vendor_data[2]; ANDROID_KABI_RESERVE(1); ANDROID_KABI_RESERVE(2); ANDROID_KABI_RESERVE(3);