summaryrefslogtreecommitdiff
path: root/driver/ppc/sn5s330.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/sn5s330.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/sn5s330.c')
-rw-r--r--driver/ppc/sn5s330.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/driver/ppc/sn5s330.c b/driver/ppc/sn5s330.c
index 9cc5918bf1..1aac04af02 100644
--- a/driver/ppc/sn5s330.c
+++ b/driver/ppc/sn5s330.c
@@ -760,4 +760,5 @@ const struct ppc_drv sn5s330_drv = {
#ifdef CONFIG_USBC_PPC_VCONN
.set_vconn = &sn5s330_set_vconn,
#endif
+ .interrupt = &sn5s330_interrupt,
};