diff options
-rw-r--r-- | driver/tcpm/tcpm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/driver/tcpm/tcpm.h b/driver/tcpm/tcpm.h index 32ec76bbfc..091527e68a 100644 --- a/driver/tcpm/tcpm.h +++ b/driver/tcpm/tcpm.h @@ -154,7 +154,7 @@ static inline int tcpm_set_snk_ctrl(int port, int enable) static inline int tcpm_set_src_ctrl(int port, int enable) { - if (tcpc_config[port].drv->set_snk_ctrl != NULL) + if (tcpc_config[port].drv->set_src_ctrl != NULL) return tcpc_config[port].drv->set_src_ctrl(port, enable); else return EC_ERROR_UNIMPLEMENTED; |