tty: remove redundant 'default n' from Kconfig-s
authorBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Fri, 12 Apr 2019 10:17:39 +0000 (12:17 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 16 Apr 2019 13:21:33 +0000 (15:21 +0200)
'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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/Kconfig
drivers/tty/hvc/Kconfig
drivers/tty/serial/Kconfig

index 8034473c54ca37e056a890296f4771b1c443e6ed..0ebb8d6ab341005c342dd7b5272bad55c25b0394 100644 (file)
@@ -84,7 +84,6 @@ config HW_CONSOLE
 config VT_HW_CONSOLE_BINDING
        bool "Support for binding and unbinding console drivers"
        depends on HW_CONSOLE
-       default n
        ---help---
          The virtual terminal is the device that interacts with the physical
          terminal through console drivers. On these systems, at least one
@@ -313,7 +312,6 @@ config N_GSM
 config TRACE_ROUTER
        tristate "Trace data router for MIPI P1149.7 cJTAG standard"
        depends on TRACE_SINK
-       default n
        help
          The trace router uses the Linux tty line discipline framework to
          route trace data coming from a tty port (say UART for example) to
@@ -329,7 +327,6 @@ config TRACE_ROUTER
 
 config TRACE_SINK
        tristate "Trace data sink for MIPI P1149.7 cJTAG standard"
-       default n
        help
          The trace sink uses the Linux line discipline framework to receive
          trace data coming from the trace router line discipline driver
index 1a910ec9f6430fee63787848f1ce5bc2cfc2a897..4d22b911111f637c790139fd96fbf53c95ec84b7 100644 (file)
@@ -25,7 +25,6 @@ config HVC_CONSOLE
 config HVC_OLD_HVSI
        bool "Old driver for pSeries serial port (/dev/hvsi*)"
        depends on HVC_CONSOLE
-       default n
 
 config HVC_OPAL
        bool "OPAL Console support"
@@ -74,7 +73,6 @@ config HVC_UDBG
        bool "udbg based fake hypervisor console"
        depends on PPC
        select HVC_DRIVER
-       default n
        help
          This is meant to be used during HW bring up or debugging when
         no other console mechanism exist but udbg, to get you a quick
index a5032e58c7376bc69ef16dca2b2f1be62ad4b0d3..6d0ab0399a72dcca8fe8262a0f45bb57117d2146 100644 (file)
@@ -370,7 +370,6 @@ config SERIAL_MAX310X
        depends on SPI_MASTER
        select SERIAL_CORE
        select REGMAP_SPI if SPI_MASTER
-       default n
        help
          This selects support for an advanced UART from Maxim (Dallas).
          Supported ICs are MAX3107, MAX3108, MAX3109, MAX14830.
@@ -653,7 +652,6 @@ config SERIAL_MUX_CONSOLE
 config PDC_CONSOLE
        bool "PDC software console support"
        depends on PARISC && !SERIAL_MUX && VT
-       default n
        help
          Saying Y here will enable the software based PDC console to be 
          used as the system console.  This is useful for machines in 
@@ -1110,7 +1108,6 @@ config SERIAL_QE
        depends on QUICC_ENGINE
        select SERIAL_CORE
        select FW_LOADER
-       default n
        help
          This driver supports the QE serial ports on Freescale embedded
          PowerPC that contain a QUICC Engine.