summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJett Rink <jettrink@chromium.org>2018-03-08 10:19:33 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2018-03-10 00:38:56 +0000
commit9caa3f4e194bd8a2e0915bf6f74268cbff15d30f (patch)
treee87749bdccc098e50e26d1b1c346085acf568942
parent9b680c847295fd44bd85769fe27e65489f3df08d (diff)
downloadchrome-ec-9caa3f4e194bd8a2e0915bf6f74268cbff15d30f.tar.gz
cleanup: remove incorrect comment
The port_address field is used in the driver. Also making array declaration consistent with other parts of the file. BRANCH=none BUG=none TEST=none Change-Id: I43c72182c6afefbdbb7286918326b7ea6f92c7d7 Signed-off-by: Jett Rink <jettrink@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/955940 Reviewed-by: Edward Hill <ecgh@chromium.org> (cherry picked from commit e0d3bcee02d5ebcdac97a7e58767ee3b85b1d79f) Reviewed-on: https://chromium-review.googlesource.com/957924 Reviewed-by: Furquan Shaikh <furquan@chromium.org> Commit-Queue: Furquan Shaikh <furquan@chromium.org> Tested-by: Furquan Shaikh <furquan@chromium.org> Trybot-Ready: Furquan Shaikh <furquan@chromium.org>
-rw-r--r--board/coral/board.c6
-rw-r--r--board/grunt/board.c6
-rw-r--r--board/reef/board.c6
3 files changed, 9 insertions, 9 deletions
diff --git a/board/coral/board.c b/board/coral/board.c
index 1b0a8044c3..4ba754721b 100644
--- a/board/coral/board.c
+++ b/board/coral/board.c
@@ -287,12 +287,12 @@ static int ps8751_tune_mux(const struct usb_mux *mux)
}
struct usb_mux usb_muxes[CONFIG_USB_PD_PORT_COUNT] = {
- {
- .port_addr = USB_PD_PORT_ANX74XX, /* don't care / unused */
+ [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,
diff --git a/board/grunt/board.c b/board/grunt/board.c
index b9f171905c..d87f074e09 100644
--- a/board/grunt/board.c
+++ b/board/grunt/board.c
@@ -173,12 +173,12 @@ uint16_t tcpc_get_alert_status(void)
}
struct usb_mux usb_muxes[CONFIG_USB_PD_PORT_COUNT] = {
- {
- .port_addr = USB_PD_PORT_ANX74XX, /* don't care / unused */
+ [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,
diff --git a/board/reef/board.c b/board/reef/board.c
index fa16408e21..e15b9a35aa 100644
--- a/board/reef/board.c
+++ b/board/reef/board.c
@@ -292,12 +292,12 @@ static int ps8751_tune_mux(const struct usb_mux *mux)
}
struct usb_mux usb_muxes[CONFIG_USB_PD_PORT_COUNT] = {
- {
- .port_addr = USB_PD_PORT_ANX74XX, /* don't care / unused */
+ [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,