From 8b76bbe2f5a162f21cc78fdafd49225e28a1cc02 Mon Sep 17 00:00:00 2001 From: Philip Chen Date: Mon, 7 Jun 2021 12:11:03 -0700 Subject: config: Rename CONFIG_CROS_BOARD_INFO Rename CONFIG_CROS_BOARD_INFO to CONFIG_CBI_EEPROM to make it clear that the information comes from on-board EEPROM. It sets up the groundwork for adding more options of CBI sources later. BRANCH=None BUG=b:186264627 TEST=make buildall -j Signed-off-by: Philip Chen Change-Id: I9a6feee0a8b35bbf29e445544243485507767ad8 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2945792 Reviewed-by: Philip Chen Commit-Queue: Philip Chen Tested-by: Philip Chen --- common/peripheral.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common/peripheral.c') diff --git a/common/peripheral.c b/common/peripheral.c index 58ca0dbffd..e70ec19347 100644 --- a/common/peripheral.c +++ b/common/peripheral.c @@ -18,7 +18,7 @@ static enum ec_status hc_locate_chip(struct host_cmd_handler_args *args) switch (params->type) { case EC_CHIP_TYPE_CBI_EEPROM: -#ifdef CONFIG_CROS_BOARD_INFO +#ifdef CONFIG_CBI_EEPROM if (params->index >= 1) return EC_RES_OVERFLOW; resp->bus_type = EC_BUS_TYPE_I2C; @@ -27,7 +27,7 @@ static enum ec_status hc_locate_chip(struct host_cmd_handler_args *args) #else /* Lookup type is supported, but not present on system. */ return EC_RES_UNAVAILABLE; -#endif /* CONFIG_CROS_BOARD_INFO */ +#endif /* CONFIG_CBI_EEPROM */ break; case EC_CHIP_TYPE_TCPC: #if defined(CONFIG_USB_POWER_DELIVERY) && defined(CONFIG_USB_PD_PORT_MAX_COUNT) && !defined(CONFIG_USB_PD_TCPC) -- cgit v1.2.1