summaryrefslogtreecommitdiff
path: root/include/usbc_ppc.h
diff options
context:
space:
mode:
authorDenis Brockus <dbrockus@chromium.org>2019-09-27 13:25:14 -0600
committerCommit Bot <commit-bot@chromium.org>2019-10-06 22:55:08 +0000
commitcfb6d3ded36e6b7935f8693532f6f9031643865d (patch)
tree8a59dccf74d4f3a8ad1f54cc6000f3b1a98f203f /include/usbc_ppc.h
parent437e7346ab38a1eca1bb8526ae03b120635f03e9 (diff)
downloadchrome-ec-cfb6d3ded36e6b7935f8693532f6f9031643865d.tar.gz
ppc: cleanup ppc
Allow limited PPC chips to default to EC_ERROR_UNIMPLEMENTED for functions in the driver that are not needed. BUG=b:138599218 BRANCH=none TEST=make buildall -j Change-Id: I5242ef285eb277c06d516ab09f7a74f76d7d34b2 Signed-off-by: Denis Brockus <dbrockus@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1829405 Reviewed-by: Edward Hill <ecgh@chromium.org>
Diffstat (limited to 'include/usbc_ppc.h')
-rw-r--r--include/usbc_ppc.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/usbc_ppc.h b/include/usbc_ppc.h
index d553c2a767..efbfbe4b6c 100644
--- a/include/usbc_ppc.h
+++ b/include/usbc_ppc.h
@@ -23,6 +23,11 @@
*/
#define PPC_OC_COOLDOWN_DELAY_US (2 * SECOND)
+/*
+ * NOTE: The pointers to functions in the ppc_drv structure can now be NULL
+ * which will indicate and return NOT_IMPLEMENTED from the main calling
+ * function
+ */
struct ppc_drv {
/**
* Initialize the PPC.