diff options
author | Sam Hurst <shurst@google.com> | 2020-05-04 12:15:52 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-05-05 02:29:53 +0000 |
commit | c6626fa92e91e2195a2757435f2765e4b8232d55 (patch) | |
tree | 82510d1852be505bd2113b2132bcc534f775d351 /include | |
parent | 5c131a077453f96510cf88a2400d1e1f74bc6685 (diff) | |
download | chrome-ec-c6626fa92e91e2195a2757435f2765e4b8232d55.tar.gz |
TCPMv2: Limit tc_is_vconn_src function to returning 0 or 1
BUG=b:155653950
BRANCH=none
TEST=make -j buildall
Signed-off-by: Sam Hurst <shurst@google.com>
Change-Id: I0154175024f0f87fe217836a6e66720830f3e5d8
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2180924
Diffstat (limited to 'include')
-rw-r--r-- | include/usb_tc_sm.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/usb_tc_sm.h b/include/usb_tc_sm.h index 47f65d430a..7f5ae8bde7 100644 --- a/include/usb_tc_sm.h +++ b/include/usb_tc_sm.h @@ -237,9 +237,7 @@ int tc_check_vconn_swap(int port); * Checks if VCONN is being sourced. * * @param port USB_C port number - * @return 1 if vconn is being sourced, 0 if it's not, and -1 if - * can't answer at this time. -1 is returned if the current - * Type-C state is not Attached.SRC or Attached.SNK. + * @return 1 if vconn is being sourced, 0 if it's not. */ int tc_is_vconn_src(int port); |