summaryrefslogtreecommitdiff
path: root/board/flapjack
diff options
context:
space:
mode:
authorDiana Z <dzigterman@chromium.org>2020-06-30 14:14:22 -0600
committerCommit Bot <commit-bot@chromium.org>2020-07-11 06:05:19 +0000
commit7e50f69303fc74562dfede6c7a3f61713814a82c (patch)
tree8ff03665ed8ca13665668d660590c3b79f28bdfe /board/flapjack
parent834aa957e6c3d3eb30e7760ef14ef722cf8009bd (diff)
downloadchrome-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/flapjack')
-rw-r--r--board/flapjack/board.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/board/flapjack/board.c b/board/flapjack/board.c
index 4474442b9f..065df1edf9 100644
--- a/board/flapjack/board.c
+++ b/board/flapjack/board.c
@@ -254,7 +254,6 @@ const struct charger_config_t chg_chips[] = {
.drv = &rt946x_drv,
},
};
-const unsigned int chg_cnt = ARRAY_SIZE(chg_chips);
/* power signal list. Must match order of enum power_signal. */
const struct power_signal_info power_signal_list[] = {