summaryrefslogtreecommitdiff
path: root/zephyr/Kconfig.battery
diff options
context:
space:
mode:
authorFabio Baltieri <fabiobaltieri@google.com>2022-04-14 13:27:51 +0000
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-04-14 20:33:29 +0000
commit982ccd411a167d3a9adc4777997d3742fad2dbf9 (patch)
tree72fce9434e92e61dcb6a27fd236789c851ae82a6 /zephyr/Kconfig.battery
parent265691a2fe290e0fa54ecccba151a5c63dd73e47 (diff)
downloadchrome-ec-982ccd411a167d3a9adc4777997d3742fad2dbf9.tar.gz
zephyr: Kconfig: fix few choice symbols format
Choice entries expects a symbol (or nothing) as the argument. The symbol is only used to have choices in multiple files (which we don't) and for documentation referencing. This renames few instances of descriptions where there should be a symbol around various Kconfig files, and cleans up various choice/endchoice definition cosmetic inconsistencies. BUG=none BRANCH=none TEST=ninja menuconfig Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> Link: https://www.kernel.org/doc/html/latest/kbuild/kconfig-language.html#kconfig-syntax Change-Id: I040bc9008d6c97bf96d8cf4f37384504ccda78b1 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3586429 Reviewed-by: Sam Hurst <shurst@google.com>
Diffstat (limited to 'zephyr/Kconfig.battery')
-rw-r--r--zephyr/Kconfig.battery8
1 files changed, 4 insertions, 4 deletions
diff --git a/zephyr/Kconfig.battery b/zephyr/Kconfig.battery
index 603542703e..6f99b99729 100644
--- a/zephyr/Kconfig.battery
+++ b/zephyr/Kconfig.battery
@@ -14,7 +14,7 @@ menuconfig PLATFORM_EC_BATTERY
if PLATFORM_EC_BATTERY
-choice "Battery select"
+choice PLATFORM_EC_BATTERY_SELECT
prompt "Select the battery to use"
help
Select the battery used on the board. If you are ensure, select the
@@ -30,9 +30,9 @@ config PLATFORM_EC_BATTERY_SMART
See here for the spec: http://sbs-forum.org/specs/sbdat110.pdf
-endchoice
+endchoice # PLATFORM_EC_BATTERY_SELECT
-choice "Battery presence detection"
+choice PLATFORM_EC_BATTERY_PRESENT_MODE
prompt "Method to use to detect the battery"
help
This selects the method to use to detect the presence of a battery.
@@ -70,7 +70,7 @@ config PLATFORM_EC_BATTERY_PRESENT_GPIO
/* gpio_map.h */
#define GPIO_BATT_PRES_ODL NAMED_GPIO(ec_batt_pres_odl)
-endchoice # battery presence
+endchoice # PLATFORM_EC_BATTERY_PRESENT_MODE
config PLATFORM_EC_USE_BATTERY_DEVICE_CHEMISTRY
bool "Provide information about battery chemistry"