summaryrefslogtreecommitdiff
path: root/board/elm
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/elm
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/elm')
-rw-r--r--board/elm/board.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/board/elm/board.c b/board/elm/board.c
index 578e7ac312..a893a57416 100644
--- a/board/elm/board.c
+++ b/board/elm/board.c
@@ -177,7 +177,6 @@ const struct charger_config_t chg_chips[] = {
.drv = &isl923x_drv,
},
};
-const unsigned int chg_cnt = ARRAY_SIZE(chg_chips);
/**
* Reset PD MCU