summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAbe Levkoy <alevkoy@chromium.org>2020-02-06 14:15:08 -0700
committerCommit Bot <commit-bot@chromium.org>2020-02-27 00:14:25 +0000
commitc55731350c4dcd5c9be3beaeb502603c3f317b6c (patch)
treeb70e1f9023b5a383d9b240c50c6959dc9009f03d /include
parent5d50b591cc40f23a388bfef3bdab3b34c170732b (diff)
downloadchrome-ec-c55731350c4dcd5c9be3beaeb502603c3f317b6c.tar.gz
usb_set_suspend: Use "enable" consistently
The port is enabled when suspend is not enabled and vice versa. Avoid confusing these idioms. BUG=none TEST=make buildall BRANCH=none Change-Id: I3063793334ac875afee8a176f96625e8903d2694 Signed-off-by: Abe Levkoy <alevkoy@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2057979 Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/usb_pd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/usb_pd.h b/include/usb_pd.h
index dda61be685..3b9e75a636 100644
--- a/include/usb_pd.h
+++ b/include/usb_pd.h
@@ -2181,9 +2181,9 @@ int pd_rx_started(int port);
/**
* Suspend the PD task.
* @param port USB-C port number
- * @param enable pass 0 to resume, anything else to suspend
+ * @param suspend pass 0 to resume, anything else to suspend
*/
-void pd_set_suspend(int port, int enable);
+void pd_set_suspend(int port, int suspend);
/**
* Resume the PD task for a port after a period of time has elapsed.