Skip to content

Commit dc3e0aa

Browse files
bzolniergregkh
authored andcommitted
misc: 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 f467c56 ("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> Acked-by: Frederic Barrat <fbarrat@linux.ibm.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Michael Ellerman <mpe@ellerman.id.au> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent b728ddd commit dc3e0aa

9 files changed

Lines changed: 0 additions & 22 deletions

File tree

‎drivers/misc/Kconfig‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ config SENSORS_LIS3LV02D
88
tristate
99
depends on INPUT
1010
select INPUT_POLLDEV
11-
default n
1211

1312
config AD525X_DPOT
1413
tristate "Analog Devices Digital Potentiometers"
@@ -61,7 +60,6 @@ config ATMEL_TCLIB
6160

6261
config DUMMY_IRQ
6362
tristate "Dummy IRQ handler"
64-
default n
6563
---help---
6664
This module accepts a single 'irq' parameter, which it should register for.
6765
The sole purpose of this module is to help with debugging of systems on
@@ -117,7 +115,6 @@ config PHANTOM
117115
config INTEL_MID_PTI
118116
tristate "Parallel Trace Interface for MIPI P1149.7 cJTAG standard"
119117
depends on PCI && TTY && (X86_INTEL_MID || COMPILE_TEST)
120-
default n
121118
help
122119
The PTI (Parallel Trace Interface) driver directs
123120
trace data routed from various parts in the system out
@@ -193,7 +190,6 @@ config ATMEL_SSC
193190

194191
config ENCLOSURE_SERVICES
195192
tristate "Enclosure Services"
196-
default n
197193
help
198194
Provides support for intelligent enclosures (bays which
199195
contain storage devices). You also need either a host
@@ -217,7 +213,6 @@ config SGI_XP
217213
config CS5535_MFGPT
218214
tristate "CS5535/CS5536 Geode Multi-Function General Purpose Timer (MFGPT) support"
219215
depends on MFD_CS5535
220-
default n
221216
help
222217
This driver provides access to MFGPT functionality for other
223218
drivers that need timers. MFGPTs are available in the CS5535 and
@@ -250,7 +245,6 @@ config CS5535_CLOCK_EVENT_SRC
250245
config HP_ILO
251246
tristate "Channel interface driver for the HP iLO processor"
252247
depends on PCI
253-
default n
254248
help
255249
The channel interface driver allows applications to communicate
256250
with iLO management processors present on HP ProLiant servers.
@@ -285,7 +279,6 @@ config QCOM_FASTRPC
285279
config SGI_GRU
286280
tristate "SGI GRU driver"
287281
depends on X86_UV && SMP
288-
default n
289282
select MMU_NOTIFIER
290283
---help---
291284
The GRU is a hardware resource located in the system chipset. The GRU
@@ -300,7 +293,6 @@ config SGI_GRU
300293
config SGI_GRU_DEBUG
301294
bool "SGI GRU driver debug"
302295
depends on SGI_GRU
303-
default n
304296
---help---
305297
This option enables additional debugging code for the SGI GRU driver.
306298
If you are unsure, say N.
@@ -358,7 +350,6 @@ config SENSORS_BH1770
358350
config SENSORS_APDS990X
359351
tristate "APDS990X combined als and proximity sensors"
360352
depends on I2C
361-
default n
362353
---help---
363354
Say Y here if you want to build a driver for Avago APDS990x
364355
combined ambient light and proximity sensor chip.
@@ -386,7 +377,6 @@ config DS1682
386377
config SPEAR13XX_PCIE_GADGET
387378
bool "PCIe gadget support for SPEAr13XX platform"
388379
depends on ARCH_SPEAR13XX && BROKEN
389-
default n
390380
help
391381
This option enables gadget support for PCIe controller. If
392382
board file defines any controller as PCIe endpoint then a sysfs

‎drivers/misc/altera-stapl/Kconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@ comment "Altera FPGA firmware download module (requires I2C)"
44
config ALTERA_STAPL
55
tristate "Altera FPGA firmware download module"
66
depends on I2C
7-
default n
87
help
98
An Altera FPGA module. Say Y when you want to support this tool.

‎drivers/misc/c2port/Kconfig‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
menuconfig C2PORT
66
tristate "Silicon Labs C2 port support"
7-
default n
87
help
98
This option enables support for Silicon Labs C2 port used to
109
program Silicon micro controller chips (and other 8051 compatible).
@@ -23,7 +22,6 @@ if C2PORT
2322
config C2PORT_DURAMAR_2150
2423
tristate "C2 port support for Eurotech's Duramar 2150"
2524
depends on X86
26-
default n
2725
help
2826
This option enables C2 support for the Eurotech's Duramar 2150
2927
on board micro controller.

‎drivers/misc/cb710/Kconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ config CB710_CORE
1414
config CB710_DEBUG
1515
bool "Enable driver debugging"
1616
depends on CB710_CORE != n
17-
default n
1817
help
1918
This is an option for use by developers; most people should
2019
say N here. This adds a lot of debugging output to dmesg.

‎drivers/misc/cxl/Kconfig‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,13 @@
44

55
config CXL_BASE
66
bool
7-
default n
87
select PPC_COPRO_BASE
98

109
config CXL_AFU_DRIVER_OPS
1110
bool
12-
default n
1311

1412
config CXL_LIB
1513
bool
16-
default n
1714

1815
config CXL
1916
tristate "Support for IBM Coherent Accelerators (CXL)"

‎drivers/misc/echo/Kconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
config ECHO
22
tristate "Line Echo Canceller support"
3-
default n
43
---help---
54
This driver provides line echo cancelling support for mISDN and
65
Zaptel drivers.

‎drivers/misc/genwqe/Kconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ menuconfig GENWQE
66
tristate "GenWQE PCIe Accelerator"
77
depends on PCI && 64BIT
88
select CRC_ITU_T
9-
default n
109
help
1110
Enables PCIe card driver for IBM GenWQE accelerators.
1211
The user-space interface is described in

‎drivers/misc/lis3lv02d/Kconfig‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ config SENSORS_LIS3_SPI
66
tristate "STMicroeletronics LIS3LV02Dx three-axis digital accelerometer (SPI)"
77
depends on !ACPI && SPI_MASTER && INPUT
88
select SENSORS_LIS3LV02D
9-
default n
109
help
1110
This driver provides support for the LIS3LV02Dx accelerometer connected
1211
via SPI. The accelerometer data is readable via
@@ -23,7 +22,6 @@ config SENSORS_LIS3_I2C
2322
tristate "STMicroeletronics LIS3LV02Dx three-axis digital accelerometer (I2C)"
2423
depends on I2C && INPUT
2524
select SENSORS_LIS3LV02D
26-
default n
2725
help
2826
This driver provides support for the LIS3LV02Dx accelerometer connected
2927
via I2C. The accelerometer data is readable via

‎drivers/misc/ocxl/Kconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
config OCXL_BASE
66
bool
7-
default n
87
select PPC_COPRO_BASE
98

109
config OCXL

0 commit comments

Comments
 (0)