From a914c8df696d4fd8cc8d7bbdfe99da539606fcf9 Mon Sep 17 00:00:00 2001 From: Jett Rink Date: Fri, 31 Aug 2018 09:11:14 -0600 Subject: ss-mux: remove unused port_addr initialization 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 Reviewed-on: https://chromium-review.googlesource.com/1200064 Commit-Ready: ChromeOS CL Exonerator Bot Reviewed-by: Edward Hill --- baseboard/grunt/baseboard.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'baseboard/grunt') diff --git a/baseboard/grunt/baseboard.c b/baseboard/grunt/baseboard.c index 8b37381f12..678d69010d 100644 --- a/baseboard/grunt/baseboard.c +++ b/baseboard/grunt/baseboard.c @@ -122,12 +122,10 @@ void tcpc_alert_event(enum gpio_signal signal) struct usb_mux usb_muxes[CONFIG_USB_PD_PORT_COUNT] = { [USB_PD_PORT_ANX74XX] = { - .port_addr = USB_PD_PORT_ANX74XX, .driver = &anx74xx_tcpm_usb_mux_driver, .hpd_update = &anx74xx_tcpc_update_hpd_status, }, [USB_PD_PORT_PS8751] = { - .port_addr = USB_PD_PORT_PS8751, .driver = &tcpci_tcpm_usb_mux_driver, .hpd_update = &ps8xxx_tcpc_update_hpd_status, /* TODO(ecgh): ps8751_tune_mux needed? */ -- cgit v1.2.1