diff options
Diffstat (limited to 'driver/tcpm/tcpm.h')
-rw-r--r-- | driver/tcpm/tcpm.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/driver/tcpm/tcpm.h b/driver/tcpm/tcpm.h index 66792d34c8..52314151ae 100644 --- a/driver/tcpm/tcpm.h +++ b/driver/tcpm/tcpm.h @@ -22,7 +22,11 @@ #endif #ifndef CONFIG_USB_PD_TCPC +#ifndef CONFIG_USB_PD_TCPC_RUNTIME_CONFIG extern const struct tcpc_config_t tcpc_config[]; +#else +extern struct tcpc_config_t tcpc_config[]; +#endif /* I2C wrapper functions - get I2C port / slave addr from config struct. */ #ifndef CONFIG_USB_PD_TCPC_LOW_POWER |