summaryrefslogtreecommitdiff
path: root/include/usb_mux.h
diff options
context:
space:
mode:
authorJett Rink <jettrink@chromium.org>2018-08-31 09:11:14 -0600
committerchrome-bot <chrome-bot@chromium.org>2018-09-17 21:35:01 -0700
commita914c8df696d4fd8cc8d7bbdfe99da539606fcf9 (patch)
tree8c0548d615e8bb84de4b04effb0f945ab7fda891 /include/usb_mux.h
parent3552760ea58d796a7fb27b3c32d7a0ce8243f6fa (diff)
downloadchrome-ec-a914c8df696d4fd8cc8d7bbdfe99da539606fcf9.tar.gz
ss-mux: remove unused port_addr initializationv2.0.0
We do not need to set the port_addr variable most places because the SS-MUX is also the TCPC and the tcpc_config_t information is used instead. Remove unused variable setting to avoid confusion. BRANCH=none BUG=none TEST=buildall. phaser USB-C communication (and muxs) still work which is a nominal case for all of these changes. Change-Id: I72ee5da251956eb133091974e8dce5ac7f8787c6 Signed-off-by: Jett Rink <jettrink@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1200064 Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com> Reviewed-by: Edward Hill <ecgh@chromium.org>
Diffstat (limited to 'include/usb_mux.h')
-rw-r--r--include/usb_mux.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/usb_mux.h b/include/usb_mux.h
index 7c3f5ae55f..e483954733 100644
--- a/include/usb_mux.h
+++ b/include/usb_mux.h
@@ -92,8 +92,11 @@ struct usb_mux_driver {
/* Describes a USB mux present in the system */
struct usb_mux {
/*
- * Driver-defined parameter, typically an i2c slave address
- * (for i2c muxes) or a port number (for GPIO 'muxes').
+ * Used by driver. Muxes that are also the TCPC do not need to specify
+ * anything for this as they will use the values from tcpc_config_t. If
+ * this mux is also a TCPC but not used as the TCPC then use the
+ * MUX_PORT_AND_ADDR to pack the i2c port and i2c address into this
+ * field and use the USB_MUX_FLAG_NOT_TCPC flag.
*/
const int port_addr;