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 /baseboard/kukui/baseboard.c | |
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 'baseboard/kukui/baseboard.c')
-rw-r--r-- | baseboard/kukui/baseboard.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/baseboard/kukui/baseboard.c b/baseboard/kukui/baseboard.c index 0d88f21510..baf915407a 100644 --- a/baseboard/kukui/baseboard.c +++ b/baseboard/kukui/baseboard.c @@ -35,8 +35,6 @@ const struct charger_config_t chg_chips[] = { }; #endif /* VARIANT_KUKUI_CHARGER_* */ -const unsigned int chg_cnt = ARRAY_SIZE(chg_chips); - #endif /* CONFIG_CHARGER_RUNTIME_CONFIG */ void board_reset_pd_mcu(void) |