From 00ab5ed22aac895b491635aed9cb67bb00b9a2b2 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Wed, 27 Jun 2018 14:16:34 +0200 Subject: [PATCH] drivers: entropy: Kconfig: Remove redundant 'default n' properties Bool symbols implicitly default to 'n'. A 'default n' can make sense e.g. in a Kconfig.defconfig file, if you want to override a 'default y' on the base definition of the symbol. It isn't used like that on any of these symbols though, and is inconsistent. This will make the auto-generated Kconfig documentation have "No defaults. Implicitly defaults to n." as well, which is clearer than 'default n if ...' Signed-off-by: Ulf Magnusson --- drivers/entropy/Kconfig | 2 -- drivers/entropy/Kconfig.esp32 | 1 - drivers/entropy/Kconfig.mcux | 2 -- drivers/entropy/Kconfig.native_posix | 1 - drivers/entropy/Kconfig.stm32 | 1 - 5 files changed, 7 deletions(-) diff --git a/drivers/entropy/Kconfig b/drivers/entropy/Kconfig index 40dc53eee4..8834895ad8 100644 --- a/drivers/entropy/Kconfig +++ b/drivers/entropy/Kconfig @@ -9,7 +9,6 @@ menuconfig ENTROPY_GENERATOR bool prompt "Entropy Drivers" - default n help Include entropy drivers in system config. @@ -23,7 +22,6 @@ source "drivers/entropy/Kconfig.native_posix" config ENTROPY_HAS_DRIVER bool - default n help This is an option to be enabled by individual entropy driver to signal that there is a true entropy driver. diff --git a/drivers/entropy/Kconfig.esp32 b/drivers/entropy/Kconfig.esp32 index ce001d04f0..dceaf4daf6 100644 --- a/drivers/entropy/Kconfig.esp32 +++ b/drivers/entropy/Kconfig.esp32 @@ -7,7 +7,6 @@ config ENTROPY_ESP32_RNG bool "ESP32 entropy number generator driver" depends on ENTROPY_GENERATOR && SOC_ESP32 - default n select ENTROPY_HAS_DRIVER help This option enables the entropy number generator for ESP32 SoCs. diff --git a/drivers/entropy/Kconfig.mcux b/drivers/entropy/Kconfig.mcux index 73ce6e0d4c..44f2eea03c 100644 --- a/drivers/entropy/Kconfig.mcux +++ b/drivers/entropy/Kconfig.mcux @@ -7,7 +7,6 @@ menuconfig ENTROPY_MCUX_RNGA bool "MCUX RNGA driver" depends on ENTROPY_GENERATOR && HAS_MCUX_RNGA - default n select ENTROPY_HAS_DRIVER help This option enables the random number generator accelerator (RNGA) @@ -16,7 +15,6 @@ menuconfig ENTROPY_MCUX_RNGA menuconfig ENTROPY_MCUX_TRNG bool "MCUX TRNG driver" depends on ENTROPY_GENERATOR && HAS_MCUX_TRNG - default n select ENTROPY_HAS_DRIVER help This option enables the true random number generator (TRNG) diff --git a/drivers/entropy/Kconfig.native_posix b/drivers/entropy/Kconfig.native_posix index 860a251167..7b0c4ab824 100644 --- a/drivers/entropy/Kconfig.native_posix +++ b/drivers/entropy/Kconfig.native_posix @@ -2,7 +2,6 @@ menuconfig FAKE_ENTROPY_NATIVE_POSIX bool "Native posix entropy driver" depends on ENTROPY_GENERATOR && ARCH_POSIX - default n select ENTROPY_HAS_DRIVER help This option enables the test random number generator for the diff --git a/drivers/entropy/Kconfig.stm32 b/drivers/entropy/Kconfig.stm32 index 8db2565722..173c1622e1 100644 --- a/drivers/entropy/Kconfig.stm32 +++ b/drivers/entropy/Kconfig.stm32 @@ -8,7 +8,6 @@ menuconfig ENTROPY_STM32_RNG bool "STM32 RNG driver" depends on SOC_FAMILY_STM32 depends on ENTROPY_GENERATOR - default n select ENTROPY_HAS_DRIVER select USE_STM32_LL_RNG help