summaryrefslogtreecommitdiff
path: root/driver/tcpm
diff options
context:
space:
mode:
authorTing Shen <phoenixshen@google.com>2021-07-28 17:22:00 +0800
committerCommit Bot <commit-bot@chromium.org>2021-07-29 08:49:13 +0000
commit8fa2833c058609a9aff106642493404e1dfe0203 (patch)
tree651e34111bfbeed2a13e21b3d994398675a63991 /driver/tcpm
parent9f60a3173bf3eae01cd2a045973c4efe2ccce613 (diff)
downloadchrome-ec-8fa2833c058609a9aff106642493404e1dfe0203.tar.gz
rt1718s: fix incorrect alert method
rt1718s driver incorrectly used the common alert function instead of its own implementation. This bug was not detected by `make buildall` because no one actually enables rt1718s until CL:2793783. BUG=b:177391887 TEST=make BRANCH=main Signed-off-by: Ting Shen <phoenixshen@google.com> Change-Id: I303cb0b6b7d0177648871ea36c1fc5c513fbb336 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3058082 Tested-by: Ting Shen <phoenixshen@chromium.org> Auto-Submit: Ting Shen <phoenixshen@chromium.org> Reviewed-by: Eric Yilun Lin <yllin@google.com> Commit-Queue: Eric Yilun Lin <yllin@google.com>
Diffstat (limited to 'driver/tcpm')
-rw-r--r--driver/tcpm/rt1718s.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/driver/tcpm/rt1718s.c b/driver/tcpm/rt1718s.c
index fb5da803eb..ea5fd3229c 100644
--- a/driver/tcpm/rt1718s.c
+++ b/driver/tcpm/rt1718s.c
@@ -355,7 +355,7 @@ const struct tcpm_drv rt1718s_tcpm_drv = {
.set_rx_enable = &tcpci_tcpm_set_rx_enable,
.get_message_raw = &tcpci_tcpm_get_message_raw,
.transmit = &tcpci_tcpm_transmit,
- .tcpc_alert = &tcpci_tcpc_alert,
+ .tcpc_alert = &rt1718s_alert,
#ifdef CONFIG_USB_PD_DISCHARGE_TCPC
.tcpc_discharge_vbus = &tcpci_tcpc_discharge_vbus,
#endif