diff options
author | Denis Brockus <dbrockus@google.com> | 2020-05-14 21:37:26 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-05-19 04:33:42 +0000 |
commit | 5e32f948d370fff182616bd987ffdc794f6858a6 (patch) | |
tree | 00d6e3de91e67397f1257acdbfdfb167f53fad04 /include/usb_pd_tcpm.h | |
parent | 825289a97d5341128c9baab650b9d9d8b4ff7c7b (diff) | |
download | chrome-ec-5e32f948d370fff182616bd987ffdc794f6858a6.tar.gz |
tcpc: AutoDischarge can be enabled on any connection wake
I thought AutoDischarge could only be enabled when
waking if DRP was enabled. This is not the case
and I am removing the unnecessary portions of code
dealing with this distinction.
BUG=none
BRANCH=none
TEST=verify connections continue to work
Signed-off-by: Denis Brockus <dbrockus@google.com>
Change-Id: Iddea93a0749842f366b046594f9abb936b1ec523
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2202564
Tested-by: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Edward Hill <ecgh@chromium.org>
Commit-Queue: 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.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/usb_pd_tcpm.h b/include/usb_pd_tcpm.h index 5b160b46b5..60a50f0f2e 100644 --- a/include/usb_pd_tcpm.h +++ b/include/usb_pd_tcpm.h @@ -341,14 +341,12 @@ struct tcpm_drv { * @param port Type-C port number * @param pull enum tcpc_cc_pull of CC lines * @param connect Connect(1) or Disconnect(0) - * @param prev_drp optional output of previous DRP value * * @return EC_SUCCESS or error */ int (*set_connection)(int port, enum tcpc_cc_pull pull, - int connect, - int *prev_drp); + int connect); #ifdef CONFIG_USB_PD_DUAL_ROLE_AUTO_TOGGLE /** |