From c026d5ea09b553b67c8f21c5998eb5c3897eaf32 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 4 Apr 2018 15:30:01 -0600 Subject: [PATCH] apps/exmaples/smps: Fix types in Kconfig. All power, voltage, current values were strings with no default. I assume they should be 'int' with what default? --- examples/smps/Kconfig | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/examples/smps/Kconfig b/examples/smps/Kconfig index e922c5812..40db2fdf0 100644 --- a/examples/smps/Kconfig +++ b/examples/smps/Kconfig @@ -15,44 +15,54 @@ config EXAMPLES_SMPS_DEVPATH The default path to the Smps device. Default: /dev/smps0 config EXAMPLES_SMPS_TIME_DEFAULT - string "SMPS example run time default (sec)" + int "SMPS example run time default (sec)" + default 0 config EXAMPLES_SMPS_OUT_VOLTAGE_DEFAULT - string "SMPS Output voltage default (mV)" + int "SMPS Output voltage default (mV)" + default 0 config EXAMPLES_SMPS_OUT_CURRENT_DEFAULT - string "SMPS Output current default (mA)" + int "SMPS Output current default (mA)" + default 0 config EXAMPLES_SMPS_OUT_POWER_DEFAULT - string "SMPS Output power default (mW)" + int "SMPS Output power default (mW)" + default 0 config EXAMPLES_SMPS_IN_CURRENT_LIMIT - string "SMPS Input Current limit (mA)" + int "SMPS Input Current limit (mA)" + default 0 ---help--- Input current limit for the SMPS driver in mA. Not used if 0 config EXAMPLES_SMPS_OUT_CURRENT_LIMIT - string "SMPS Output Current limit (mA)" + int "SMPS Output Current limit (mA)" + default 0 ---help--- Output current limit for the SMPS driver in mA. Not used if 0 config EXAMPLES_SMPS_IN_VOLTAGE_LIMIT - string "SMPS Input Voltage limit (mV)" + int "SMPS Input Voltage limit (mV)" + default 0 ---help--- Input voltage limit for the SMPS driver in mV. Not used if 0 config EXAMPLES_SMPS_OUT_VOLTAGE_LIMIT - string "SMPS Output Voltage limit (mV)" + int "SMPS Output Voltage limit (mV)" + default 0 ---help--- Output voltage limit for the SMPS driver in mV. Not used if 0 config EXAMPLES_SMPS_IN_POWER_LIMIT - string "SMPS Input Power limit (mW)" + int "SMPS Input Power limit (mW)" + default 0 ---help--- Input power limit for the SMPS driver in mW. Not used if 0 config EXAMPLES_SMPS_OUT_POWER_LIMIT - string "SMPS Output Power limit (mW)" + int "SMPS Output Power limit (mW)" + default 0 ---help--- Output power limit for the SMPS driver in mW. Not used if 0