Web lists-archives.com

[PATCH] mfd: remove redundant 'default n' from Kconfig

'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
        config FOO
                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

Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@xxxxxxxxxxx>
 drivers/mfd/Kconfig |    6 ------
 1 file changed, 6 deletions(-)

Index: b/drivers/mfd/Kconfig
--- a/drivers/mfd/Kconfig	2018-10-09 15:58:40.547122978 +0200
+++ b/drivers/mfd/Kconfig	2018-10-10 16:49:37.575915230 +0200
@@ -8,7 +8,6 @@ menu "Multifunction device drivers"
 config MFD_CORE
 	select IRQ_DOMAIN
-	default n
 config MFD_CS5535
 	tristate "AMD CS5535 and CS5536 southbridge core functions"
@@ -870,7 +869,6 @@ config MFD_VIPERBOARD
         tristate "Nano River Technologies Viperboard"
 	select MFD_CORE
 	depends on USB
-	default n
 	  Say yes here if you want support for Nano River Technologies
@@ -1575,7 +1573,6 @@ config MFD_TWL4030_AUDIO
 	bool "TI TWL4030 Audio"
 	depends on TWL4030_CORE
 	select MFD_CORE
-	default n
 config TWL6040_CORE
 	bool "TI TWL6040 audio codec"
@@ -1583,7 +1580,6 @@ config TWL6040_CORE
 	select MFD_CORE
 	select REGMAP_I2C
 	select REGMAP_IRQ
-	default n
 	  Say yes here if you want support for Texas Instruments TWL6040 audio
@@ -1605,7 +1601,6 @@ config MFD_WL1273_CORE
 	tristate "TI WL1273 FM radio"
 	depends on I2C
 	select MFD_CORE
-	default n
 	  This is the core driver for the TI WL1273 FM radio. This MFD
 	  driver connects the radio-wl1273 V4L2 module and the wl1273
@@ -1649,7 +1644,6 @@ config MFD_TC3589X
 config MFD_TMIO
-	default n
 config MFD_T7L66XB
 	bool "Toshiba T7L66XB"