summaryrefslogtreecommitdiff
path: root/include/usb_pd_tcpm.h
diff options
context:
space:
mode:
authorDenis Brockus <dbrockus@google.com>2020-03-26 12:41:56 -0600
committerCommit Bot <commit-bot@chromium.org>2020-03-28 01:46:15 +0000
commit522979dc23224b7c1f9d4e844f4965cc17854fdd (patch)
treefaac924b451ab4f6275993b175ab38ed5717233c /include/usb_pd_tcpm.h
parent68b77f7c6ca95602d9cc5d63798c620e190c30f6 (diff)
downloadchrome-ec-522979dc23224b7c1f9d4e844f4965cc17854fdd.tar.gz
tcpmv2: reduce zork specific auto discharge disconnect code
Removing the conditional code to find the specifics that broke waddledoo and then fix that. BUG=b:152616398 b:152444591 b:150110431 b:150913968 b:151152817 BRANCH=none TEST=verify trembyle and waddledoo Signed-off-by: Denis Brockus <dbrockus@google.com> Change-Id: Ieb88540b2298c3b999ab27ea78285f7f1c34bff6 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2121633 Reviewed-by: Denis Brockus <dbrockus@chromium.org> Reviewed-by: Diana Z <dzigterman@chromium.org> Commit-Queue: Denis Brockus <dbrockus@chromium.org> Commit-Queue: Diana Z <dzigterman@chromium.org> Tested-by: Denis Brockus <dbrockus@chromium.org> Auto-Submit: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'include/usb_pd_tcpm.h')
-rw-r--r--include/usb_pd_tcpm.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/include/usb_pd_tcpm.h b/include/usb_pd_tcpm.h
index 39eab7e63b..35f9cccb47 100644
--- a/include/usb_pd_tcpm.h
+++ b/include/usb_pd_tcpm.h
@@ -319,24 +319,6 @@ struct tcpm_drv {
void (*tcpc_enable_auto_discharge_disconnect)(int port,
int enable);
-#ifndef CONFIG_ZORK_AUTO_DISCHARGE
- /**
- * Set new connection
- * There is a new connection. May have to handle differently
- * if we were performing auto-toggle. Allow a driver to do
- * any work required to leave the unattached auto-toggle mode
- * as well as setting the CC lines. If auto-toggle is not
- * being used or was not the cause of the new connection
- * detection then set both CC lines to the passed pull.
- *
- * @param port Type-C port number
- * @param pull enum tcpc_cc_pull of CC lines
- *
- * @return EC_SUCCESS or error
- */
- int (*set_new_connection)(int port,
- enum tcpc_cc_pull pull);
-#else
/**
* Set connection
* If this is a disconnect, set the ROLE_CONTROL, otherwise
@@ -356,7 +338,6 @@ struct tcpm_drv {
int (*set_connection)(int port,
enum tcpc_cc_pull pull,
int connect);
-#endif
#ifdef CONFIG_USB_PD_DUAL_ROLE_AUTO_TOGGLE
/**