summaryrefslogtreecommitdiff
path: root/include/usb_mux.h
diff options
context:
space:
mode:
authorVijay Hiremath <vijay.p.hiremath@intel.com>2019-11-22 11:42:29 -0800
committerCommit Bot <commit-bot@chromium.org>2019-11-26 20:01:22 +0000
commit3cb2b8e2be4c3526510f46ad69225b57e2b34cd0 (patch)
treecedfefa7e1feb2fbfde897258aaa550c453bf6e7 /include/usb_mux.h
parent3e2f184b5bb43461adc3c4ec791ef1ae34441946 (diff)
downloadchrome-ec-3cb2b8e2be4c3526510f46ad69225b57e2b34cd0.tar.gz
usb_mux: cleanup the usb_mux_get() function
Simplified the usb_mux_get() function and made the MUX info prints same as in ectool. BUG=none BRANCH=none TEST=make buildall -j Change-Id: Iefb16e1dbd323afbe248b06fe9c53abc63be9a67 Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1931284 Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'include/usb_mux.h')
-rw-r--r--include/usb_mux.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/usb_mux.h b/include/usb_mux.h
index c0e781f65d..c628cfc869 100644
--- a/include/usb_mux.h
+++ b/include/usb_mux.h
@@ -264,11 +264,9 @@ void usb_mux_set(int port, enum typec_mux mux_mode,
* Query superspeed mux status on type-C port.
*
* @param port port number.
- * @param dp_str pointer to the DP string to return.
- * @param usb_str pointer to the USB string to return.
- * @return Non-zero if superspeed connection is enabled; otherwise, zero.
+ * @return current MUX state (USB_PD_MUX_*).
*/
-int usb_mux_get(int port, const char **dp_str, const char **usb_str);
+mux_state_t usb_mux_get(int port);
/**
* Flip the superspeed muxes on type-C port.