summaryrefslogtreecommitdiff
path: root/baseboard/octopus/variant_usbc_ec_tcpcs.c
diff options
context:
space:
mode:
authorJett Rink <jettrink@chromium.org>2018-05-21 15:56:28 -0600
committerchrome-bot <chrome-bot@chromium.org>2018-05-24 15:44:30 -0700
commit4a65a62f85ece242588d9316bf624bbd12cd54f7 (patch)
tree4a3325d925543786471db9594c28c1034f7c197f /baseboard/octopus/variant_usbc_ec_tcpcs.c
parent1c2a9ee49eb54e9d3f30d3b9f45db71ef565133c (diff)
downloadchrome-ec-4a65a62f85ece242588d9316bf624bbd12cd54f7.tar.gz
ppc: making driver non-const
We need to update the driver based on the runtime board id, so we need to remove the const attribute. BRANCH=none BUG=b:78896495,b:78021059 TEST=build all -j Change-Id: I5f751c33cf4ec68a38aeb8644170df4987c87d7b Signed-off-by: Jett Rink <jettrink@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1068030 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Furquan Shaikh <furquan@chromium.org>
Diffstat (limited to 'baseboard/octopus/variant_usbc_ec_tcpcs.c')
-rw-r--r--baseboard/octopus/variant_usbc_ec_tcpcs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/baseboard/octopus/variant_usbc_ec_tcpcs.c b/baseboard/octopus/variant_usbc_ec_tcpcs.c
index 20296b63f6..a4676f6f40 100644
--- a/baseboard/octopus/variant_usbc_ec_tcpcs.c
+++ b/baseboard/octopus/variant_usbc_ec_tcpcs.c
@@ -78,7 +78,7 @@ struct usb_mux usb_muxes[CONFIG_USB_PD_PORT_COUNT] = {
/******************************************************************************/
/* USB-C PPC Configuration */
-const struct ppc_config_t ppc_chips[CONFIG_USB_PD_PORT_COUNT] = {
+struct ppc_config_t ppc_chips[CONFIG_USB_PD_PORT_COUNT] = {
[USB_PD_PORT_ITE_0] = {
.i2c_port = I2C_PORT_USBC0,
.i2c_addr = SN5S330_ADDR0,
@@ -90,7 +90,7 @@ const struct ppc_config_t ppc_chips[CONFIG_USB_PD_PORT_COUNT] = {
.drv = &sn5s330_drv
},
};
-const unsigned int ppc_cnt = ARRAY_SIZE(ppc_chips);
+unsigned int ppc_cnt = ARRAY_SIZE(ppc_chips);
/******************************************************************************/
/* Power Delivery and charing functions */