ANDROID: GKI: forward declare struct tcpci_data in vendor hooks

The inclusion of the internal drivers/usb/typec/tcpm/tcpci.h header
broke some androidci builds.

Bug: 233047575
Fixes: f677cbf076 ("ANDROID: GKI: include more type definitions in vendor hooks")
Signed-off-by: Robin Peng <robinpeng@google.com>
Change-Id: I59f2f19889d2646fc5169506df1fba8cfeda305e
This commit is contained in:
Robin Peng
2022-07-06 17:06:32 +08:00
parent 037c2b81ac
commit f6acdedf61

View File

@@ -10,12 +10,8 @@
* Following tracepoints are not exported in tracefs and provide a * Following tracepoints are not exported in tracefs and provide a
* mechanism for vendor modules to hook and extend functionality * mechanism for vendor modules to hook and extend functionality
*/ */
#ifdef __GENKSYMS__ /* Including ../drivers/usb/typec/tcpm/tcpci.h breaks builds. */
struct tcpci_data; struct tcpci_data;
#else
/* struct tcpci_data */
#include <../drivers/usb/typec/tcpm/tcpci.h>
#endif /* __GENKSYMS__ */
struct tcpci; struct tcpci;
struct tcpm_port; struct tcpm_port;