diff options
author | Diana Z <dzigterman@chromium.org> | 2020-06-30 14:14:22 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-07-11 06:05:19 +0000 |
commit | 7e50f69303fc74562dfede6c7a3f61713814a82c (patch) | |
tree | 8ff03665ed8ca13665668d660590c3b79f28bdfe /board/nocturne | |
parent | 834aa957e6c3d3eb30e7760ef14ef722cf8009bd (diff) | |
download | chrome-ec-7e50f69303fc74562dfede6c7a3f61713814a82c.tar.gz |
Charger: Add dynamic charger chip count
Different DB options may cause different numbers of charger chips to be
present on the system. Remove constant count for charger chips, and
instead always call into the overridable function to query the count.
BRANCH=None
BUG=b:155963446
TEST=make -j buildall
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: I0e65b8af351ecabe6f7b823e0e56f1932cc280a6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2277833
Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'board/nocturne')
-rw-r--r-- | board/nocturne/board.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/board/nocturne/board.c b/board/nocturne/board.c index b7ddc2aa74..b5472ee456 100644 --- a/board/nocturne/board.c +++ b/board/nocturne/board.c @@ -340,8 +340,6 @@ const struct charger_config_t chg_chips[] = { }, }; -const unsigned int chg_cnt = ARRAY_SIZE(chg_chips); - void board_chipset_startup(void) { gpio_set_level(GPIO_EN_5V, 1); |