diff options
author | Diana Z <dzigterman@chromium.org> | 2020-12-10 16:49:52 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-12-11 00:46:16 +0000 |
commit | bc64c3cbedaf3e45780717dc807058b2f1570445 (patch) | |
tree | 605d5f00cf0dda171894e97a6a80c5fbc5fb38d0 /test/usb_typec_drp_acc_trysrc.c | |
parent | fc996ee44c03b38cd91fbf2c64d5b491a3faa7ea (diff) | |
download | chrome-ec-bc64c3cbedaf3e45780717dc807058b2f1570445.tar.gz |
TCPMv2: Add source and sink cap PD APIs for TC-only use
Stub out returns of 0 and NULL for the source and sink cap pd_ APIs if
a board is not using the PE layer.
BRANCH=None
BUG=None
TEST=make -j buildall
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: I32e74f3f29aacdf47aca9bc9d0664a4d799da3b2
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2585749
Reviewed-by: Scott Collyer <scollyer@chromium.org>
Commit-Queue: Scott Collyer <scollyer@chromium.org>
Diffstat (limited to 'test/usb_typec_drp_acc_trysrc.c')
-rw-r--r-- | test/usb_typec_drp_acc_trysrc.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/test/usb_typec_drp_acc_trysrc.c b/test/usb_typec_drp_acc_trysrc.c index 7d434bf673..02bdc6e3c0 100644 --- a/test/usb_typec_drp_acc_trysrc.c +++ b/test/usb_typec_drp_acc_trysrc.c @@ -31,26 +31,6 @@ __overridable void pd_request_power_swap(int port) {} -uint8_t pd_get_src_cap_cnt(int port) -{ - return 0; -} - -const uint32_t * const pd_get_src_caps(int port) -{ - return NULL; -} - -uint8_t pd_get_snk_cap_cnt(int port) -{ - return 0; -} - -const uint32_t * const pd_get_snk_caps(int port) -{ - return NULL; -} - void pd_set_src_caps(int port, int cnt, uint32_t *src_caps) { } |