From 4a65a62f85ece242588d9316bf624bbd12cd54f7 Mon Sep 17 00:00:00 2001 From: Jett Rink Date: Mon, 21 May 2018 15:56:28 -0600 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/1068030 Reviewed-by: Aseda Aboagye Reviewed-by: Furquan Shaikh --- board/grunt/board.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'board/grunt') diff --git a/board/grunt/board.c b/board/grunt/board.c index e522751ea1..5f6ac0084b 100644 --- a/board/grunt/board.c +++ b/board/grunt/board.c @@ -204,7 +204,7 @@ struct usb_mux usb_muxes[CONFIG_USB_PD_PORT_COUNT] = { } }; -const struct ppc_config_t ppc_chips[] = { +struct ppc_config_t ppc_chips[] = { { .i2c_port = I2C_PORT_TCPC0, .i2c_addr = SN5S330_ADDR0, @@ -216,7 +216,7 @@ const struct ppc_config_t ppc_chips[] = { .drv = &sn5s330_drv }, }; -const unsigned int ppc_cnt = ARRAY_SIZE(ppc_chips); +unsigned int ppc_cnt = ARRAY_SIZE(ppc_chips); /* BC 1.2 chip Configuration */ const struct bq24392_config_t bq24392_config[CONFIG_USB_PD_PORT_COUNT] = { -- cgit v1.2.1