diff options
author | Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> | 2018-11-06 21:36:26 -0500 |
---|---|---|
committer | Ley Foon Tan <ley.foon.tan@intel.com> | 2019-03-06 16:29:35 -0500 |
commit | d5dbb2e8ce6e19a56d14ed24a8e10c3fed5375b4 (patch) | |
tree | 3b00894a024781bd158becd0494ed746a493fae5 | |
parent | 0f8ed994575429d6042cf5d7ef70081c94091587 (diff) |
nios2: remove redundant 'default n' from Kconfig-s
'default n' is the default value for any bool or tristate Kconfig
setting so there is no need to write it explicitly.
Also since commit f467c5640c29 ("kconfig: only write '# CONFIG_FOO
is not set' for visible symbols") the Kconfig behavior is the same
regardless of 'default n' being present or not:
...
One side effect of (and the main motivation for) this change is making
the following two definitions behave exactly the same:
config FOO
bool
config FOO
bool
default n
With this change, neither of these will generate a
'# CONFIG_FOO is not set' line (assuming FOO isn't selected/implied).
That might make it clearer to people that a bare 'default n' is
redundant.
...
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
-rw-r--r-- | arch/nios2/Kconfig | 1 | ||||
-rw-r--r-- | arch/nios2/platform/Kconfig.platform | 9 |
2 files changed, 0 insertions, 10 deletions
diff --git a/arch/nios2/Kconfig b/arch/nios2/Kconfig index 532343eebf89..c382103bc39d 100644 --- a/arch/nios2/Kconfig +++ b/arch/nios2/Kconfig | |||
@@ -122,7 +122,6 @@ config NIOS2_CMDLINE_IGNORE_DTB | |||
122 | 122 | ||
123 | config NIOS2_PASS_CMDLINE | 123 | config NIOS2_PASS_CMDLINE |
124 | bool "Passed kernel command line from u-boot" | 124 | bool "Passed kernel command line from u-boot" |
125 | default n | ||
126 | help | 125 | help |
127 | Use bootargs env variable from u-boot for kernel command line. | 126 | Use bootargs env variable from u-boot for kernel command line. |
128 | will override "Default kernel command string". | 127 | will override "Default kernel command string". |
diff --git a/arch/nios2/platform/Kconfig.platform b/arch/nios2/platform/Kconfig.platform index 74c1aaf588b8..c72074f8bdd9 100644 --- a/arch/nios2/platform/Kconfig.platform +++ b/arch/nios2/platform/Kconfig.platform | |||
@@ -17,7 +17,6 @@ comment "Device tree" | |||
17 | 17 | ||
18 | config NIOS2_DTB_AT_PHYS_ADDR | 18 | config NIOS2_DTB_AT_PHYS_ADDR |
19 | bool "DTB at physical address" | 19 | bool "DTB at physical address" |
20 | default n | ||
21 | help | 20 | help |
22 | When enabled you can select a physical address to load the dtb from. | 21 | When enabled you can select a physical address to load the dtb from. |
23 | Normally this address is passed by a bootloader such as u-boot but | 22 | Normally this address is passed by a bootloader such as u-boot but |
@@ -37,7 +36,6 @@ config NIOS2_DTB_PHYS_ADDR | |||
37 | 36 | ||
38 | config NIOS2_DTB_SOURCE_BOOL | 37 | config NIOS2_DTB_SOURCE_BOOL |
39 | bool "Compile and link device tree into kernel image" | 38 | bool "Compile and link device tree into kernel image" |
40 | default n | ||
41 | help | 39 | help |
42 | This allows you to specify a dts (device tree source) file | 40 | This allows you to specify a dts (device tree source) file |
43 | which will be compiled and linked into the kernel image. | 41 | which will be compiled and linked into the kernel image. |
@@ -62,21 +60,18 @@ config NIOS2_ARCH_REVISION | |||
62 | 60 | ||
63 | config NIOS2_HW_MUL_SUPPORT | 61 | config NIOS2_HW_MUL_SUPPORT |
64 | bool "Enable MUL instruction" | 62 | bool "Enable MUL instruction" |
65 | default n | ||
66 | help | 63 | help |
67 | Set to true if you configured the Nios II to include the MUL | 64 | Set to true if you configured the Nios II to include the MUL |
68 | instruction. This will enable the -mhw-mul compiler flag. | 65 | instruction. This will enable the -mhw-mul compiler flag. |
69 | 66 | ||
70 | config NIOS2_HW_MULX_SUPPORT | 67 | config NIOS2_HW_MULX_SUPPORT |
71 | bool "Enable MULX instruction" | 68 | bool "Enable MULX instruction" |
72 | default n | ||
73 | help | 69 | help |
74 | Set to true if you configured the Nios II to include the MULX | 70 | Set to true if you configured the Nios II to include the MULX |
75 | instruction. Enables the -mhw-mulx compiler flag. | 71 | instruction. Enables the -mhw-mulx compiler flag. |
76 | 72 | ||
77 | config NIOS2_HW_DIV_SUPPORT | 73 | config NIOS2_HW_DIV_SUPPORT |
78 | bool "Enable DIV instruction" | 74 | bool "Enable DIV instruction" |
79 | default n | ||
80 | help | 75 | help |
81 | Set to true if you configured the Nios II to include the DIV | 76 | Set to true if you configured the Nios II to include the DIV |
82 | instruction. Enables the -mhw-div compiler flag. | 77 | instruction. Enables the -mhw-div compiler flag. |
@@ -84,7 +79,6 @@ config NIOS2_HW_DIV_SUPPORT | |||
84 | config NIOS2_BMX_SUPPORT | 79 | config NIOS2_BMX_SUPPORT |
85 | bool "Enable BMX instructions" | 80 | bool "Enable BMX instructions" |
86 | depends on NIOS2_ARCH_REVISION = 2 | 81 | depends on NIOS2_ARCH_REVISION = 2 |
87 | default n | ||
88 | help | 82 | help |
89 | Set to true if you configured the Nios II R2 to include | 83 | Set to true if you configured the Nios II R2 to include |
90 | the BMX Bit Manipulation Extension instructions. Enables | 84 | the BMX Bit Manipulation Extension instructions. Enables |
@@ -93,7 +87,6 @@ config NIOS2_BMX_SUPPORT | |||
93 | config NIOS2_CDX_SUPPORT | 87 | config NIOS2_CDX_SUPPORT |
94 | bool "Enable CDX instructions" | 88 | bool "Enable CDX instructions" |
95 | depends on NIOS2_ARCH_REVISION = 2 | 89 | depends on NIOS2_ARCH_REVISION = 2 |
96 | default n | ||
97 | help | 90 | help |
98 | Set to true if you configured the Nios II R2 to include | 91 | Set to true if you configured the Nios II R2 to include |
99 | the CDX Bit Manipulation Extension instructions. Enables | 92 | the CDX Bit Manipulation Extension instructions. Enables |
@@ -101,13 +94,11 @@ config NIOS2_CDX_SUPPORT | |||
101 | 94 | ||
102 | config NIOS2_FPU_SUPPORT | 95 | config NIOS2_FPU_SUPPORT |
103 | bool "Custom floating point instr support" | 96 | bool "Custom floating point instr support" |
104 | default n | ||
105 | help | 97 | help |
106 | Enables the -mcustom-fpu-cfg=60-1 compiler flag. | 98 | Enables the -mcustom-fpu-cfg=60-1 compiler flag. |
107 | 99 | ||
108 | config NIOS2_CI_SWAB_SUPPORT | 100 | config NIOS2_CI_SWAB_SUPPORT |
109 | bool "Byteswap custom instruction" | 101 | bool "Byteswap custom instruction" |
110 | default n | ||
111 | help | 102 | help |
112 | Use the byteswap (endian converter) Nios II custom instruction provided | 103 | Use the byteswap (endian converter) Nios II custom instruction provided |
113 | by Altera and which can be enabled in QSYS builder. This accelerates | 104 | by Altera and which can be enabled in QSYS builder. This accelerates |