summaryrefslogtreecommitdiff
path: root/driver/ppc/syv682x.c
diff options
context:
space:
mode:
authorDawid Niedzwiecki <dn@semihalf.com>2021-11-10 13:06:08 +0100
committerCommit Bot <commit-bot@chromium.org>2021-11-11 19:42:14 +0000
commita662352941b30951cc977437eca58182cb5b2cd2 (patch)
tree0cc2ad80910130c5e654db19e230aff4703f1884 /driver/ppc/syv682x.c
parent5b3bbebfcef2377211f6a2dcb5625fd90ac87bbe (diff)
downloadchrome-ec-a662352941b30951cc977437eca58182cb5b2cd2.tar.gz
ppc: add an interrupt pointer to the ppc driver API
Add a pointer to interrupt handler to ppc driver API. It allows calling the pointer from ppc_chips array instead of hardcoded functions. BUG=b:194432779 TEST=build EC for all boards BRANCH=main Signed-off-by: Dawid Niedzwiecki <dn@semihalf.com> Change-Id: I163a8ec91a02f8095d8dca76a56b9c9c91962228 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3270681 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'driver/ppc/syv682x.c')
-rw-r--r--driver/ppc/syv682x.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/driver/ppc/syv682x.c b/driver/ppc/syv682x.c
index 0e49abdf6a..722824c53d 100644
--- a/driver/ppc/syv682x.c
+++ b/driver/ppc/syv682x.c
@@ -834,4 +834,5 @@ const struct ppc_drv syv682x_drv = {
#ifdef CONFIG_USBC_PPC_VCONN
.set_vconn = &syv682x_set_vconn,
#endif
+ .interrupt = &syv682x_interrupt,
};