diff options
author | Fabio Baltieri <fabiobaltieri@google.com> | 2022-05-16 16:11:35 +0000 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-05-27 15:55:42 +0000 |
commit | 2024fc296cc799f75ab1ca502e73e09b6488269a (patch) | |
tree | 0a12f20f19820dc6e7d13c695c05362b0e1ef0c4 /board/kuldax | |
parent | 5762329719d76c23d395c3816ed503597c4f6cc7 (diff) | |
download | chrome-ec-2024fc296cc799f75ab1ca502e73e09b6488269a.tar.gz |
usbc: wrap task_set_event to have an explicit port argument
Define an explicit function to set events for the usb charger tasks, so
that the caller is not coupled to the internal task implementation, and
we can use a single task on a later patch.
BRANCH=none
BUG=b:226411332
TEST=make buildall
TEST=zmake testall
TEST=cq dry run
Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
Change-Id: I7a1223642b800568bf4f9864f75b2b647c84d29f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3663746
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'board/kuldax')
-rw-r--r-- | board/kuldax/usbc_config.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/board/kuldax/usbc_config.c b/board/kuldax/usbc_config.c index a245fc96ae..fddc9a449c 100644 --- a/board/kuldax/usbc_config.c +++ b/board/kuldax/usbc_config.c @@ -345,13 +345,13 @@ void bc12_interrupt(enum gpio_signal signal) { switch (signal) { case GPIO_USB_C0_BC12_INT_ODL: - task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12); + usb_charger_task_set_event(0, USB_CHG_EVENT_BC12); break; case GPIO_USB_C1_BC12_INT_ODL: - task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12); + usb_charger_task_set_event(1, USB_CHG_EVENT_BC12); break; case GPIO_USB_C2_BC12_INT_ODL: - task_set_event(TASK_ID_USB_CHG_P2, USB_CHG_EVENT_BC12); + usb_charger_task_set_event(2, USB_CHG_EVENT_BC12); break; default: break; |