diff options
author | Dawid Niedzwiecki <dn@semihalf.com> | 2022-03-15 10:50:44 +0100 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-03-23 20:10:20 +0000 |
commit | a308e0d074dd5800df39e16b1643f6e1bbb56308 (patch) | |
tree | 9bb8c87a421556e9d17e89d14466ed268051abb7 /zephyr/shim | |
parent | 1fd9e3a00e64d21148a1211517f9f9e0f75337e9 (diff) | |
download | chrome-ec-a308e0d074dd5800df39e16b1643f6e1bbb56308.tar.gz |
zephyr: remove named-batteries node
Replace obsolete name-batteries node with the batteries node for tests.
Once there are no more named-batteries nodes, remove all sources that
are related to this concept.
BUG=b:218888909
TEST=zmake testall
BRANCH=main
Signed-off-by: Dawid Niedzwiecki <dn@semihalf.com>
Change-Id: I6b438e71ccc96159b6e90d99a733d8ac20cf3b6c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3541920
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/shim')
-rw-r--r-- | zephyr/shim/include/battery_enum.h | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/zephyr/shim/include/battery_enum.h b/zephyr/shim/include/battery_enum.h index a461829a31..559fec76e8 100644 --- a/zephyr/shim/include/battery_enum.h +++ b/zephyr/shim/include/battery_enum.h @@ -13,24 +13,11 @@ #define BATTERY_TYPE_WITH_COMMA(id) BATTERY_TYPE(id), /* This produces a list of BATTERY_<ENUM_NAME> identifiers */ -#if DT_NODE_EXISTS(DT_PATH(batteries)) - enum battery_type { +#if DT_NODE_EXISTS(DT_PATH(batteries)) DT_FOREACH_CHILD(DT_PATH(batteries), BATTERY_TYPE_WITH_COMMA) - - BATTERY_TYPE_COUNT, -}; - -#else /* DT_NODE_EXISTS(DT_PATH(batteries)) */ - -enum battery_type { -#if DT_NODE_EXISTS(DT_PATH(named_batteries)) - DT_FOREACH_CHILD(DT_PATH(named_batteries), BATTERY_TYPE_WITH_COMMA) #endif - BATTERY_TYPE_COUNT, }; -#endif /* DT_NODE_EXISTS(DT_PATH(batteries)) */ - #undef BATTERY_TYPE_WITH_COMMA |