media: remove redundant 'default n' from Kconfig-s
authorBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Fri, 12 Apr 2019 10:27:40 +0000 (06:27 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 24 May 2019 12:36:45 +0000 (08:36 -0400)
'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: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
14 files changed:
drivers/media/Kconfig
drivers/media/dvb-core/Kconfig
drivers/media/dvb-frontends/Kconfig
drivers/media/pci/ddbridge/Kconfig
drivers/media/pci/dt3155/Kconfig
drivers/media/pci/ivtv/Kconfig
drivers/media/platform/Kconfig
drivers/media/platform/omap/Kconfig
drivers/media/platform/vicodec/Kconfig
drivers/media/platform/vimc/Kconfig
drivers/media/platform/vivid/Kconfig
drivers/media/radio/Kconfig
drivers/media/usb/s2255/Kconfig
drivers/media/v4l2-core/Kconfig

index 8efaf99243e0f421b4d709d068227069ddced47c..dee5766fb1467a5e84300e1cdf8b1aac327dd283 100644 (file)
@@ -113,7 +113,6 @@ config MEDIA_CONTROLLER_DVB
 config MEDIA_CONTROLLER_REQUEST_API
        bool "Enable Media controller Request API (EXPERIMENTAL)"
        depends on MEDIA_CONTROLLER && STAGING_MEDIA
-       default n
        help
          DO NOT ENABLE THIS OPTION UNLESS YOU KNOW WHAT YOU'RE DOING.
 
@@ -163,7 +162,6 @@ config DVB_MMAP
        depends on DVB_CORE
        depends on VIDEO_V4L2=y || VIDEO_V4L2=DVB_CORE
        select VIDEOBUF2_VMALLOC
-       default n
        help
          This option enables DVB experimental memory-mapped API, which
          reduces the number of context switches to read DVB buffers, as
@@ -189,7 +187,6 @@ config DVB_NET
 config TTPCI_EEPROM
        tristate
        depends on I2C
-       default n
 
 source "drivers/media/dvb-core/Kconfig"
 
index f004aea352e06fdce17d0797309101b2478afc87..08e0900ae161df5fed654c16cc9326d3db71441a 100644 (file)
@@ -18,7 +18,6 @@ config DVB_MAX_ADAPTERS
 config DVB_DYNAMIC_MINORS
        bool "Dynamic DVB minor allocation"
        depends on DVB_CORE
-       default n
        help
          If you say Y here, the DVB subsystem will use dynamic minor
          allocation for any device that uses the DVB major number.
@@ -31,7 +30,6 @@ config DVB_DYNAMIC_MINORS
 config DVB_DEMUX_SECTION_LOSS_LOG
        bool "Enable DVB demux section packet loss log"
        depends on DVB_CORE
-       default n
        help
          Enable extra log messages meant to detect packet loss
          inside the Kernel.
@@ -44,7 +42,6 @@ config DVB_DEMUX_SECTION_LOSS_LOG
 config DVB_ULE_DEBUG
        bool "Enable DVB net ULE packet debug messages"
        depends on DVB_CORE
-       default n
        help
          Enable extra log messages meant to detect problems while
          handling DVB network ULE packet loss inside the Kernel.
index ea5450fcb6166942f2975efd5aa4abfd07ec9a3b..dc43749177df2a0b4bf95f66ba2886c0eb59d90f 100644 (file)
@@ -945,5 +945,4 @@ comment "Tools to develop new frontends"
 config DVB_DUMMY_FE
        tristate "Dummy frontend driver"
        depends on DVB_CORE
-       default n
 endmenu
index fc98b6d575d9135dbb3a178d763c26f49124cd32..2577ad3082826c70ef4b5814e38bad8c779b8867 100644 (file)
@@ -35,7 +35,6 @@ config DVB_DDBRIDGE_MSIENABLE
        bool "Enable Message Signaled Interrupts (MSI) per default (EXPERIMENTAL)"
        depends on DVB_DDBRIDGE
        depends on PCI_MSI
-       default n
        help
          Use PCI MSI (Message Signaled Interrupts) per default. Enabling this
          might lead to I2C errors originating from the bridge in conjunction
index d770eec541d4857be889debfe706b23bfaa7cdb5..1f2fe7cdbdb2b96966256a8c489697a9b76fee60 100644 (file)
@@ -2,7 +2,6 @@ config VIDEO_DT3155
        tristate "DT3155 frame grabber"
        depends on PCI && VIDEO_DEV && VIDEO_V4L2
        select VIDEOBUF2_DMA_CONTIG
-       default n
        help
          Enables dt3155 device driver for the DataTranslation DT3155 frame grabber.
          Say Y here if you have this hardware.
index e96b3c182a2f4eb705a5b9f2d7f566b3559c2480..1342a95f6997efec4e58210d0c13de24ca705288 100644 (file)
@@ -31,7 +31,6 @@ config VIDEO_IVTV
 config VIDEO_IVTV_DEPRECATED_IOCTLS
        bool "enable the DVB ioctls abuse on ivtv driver"
        depends on VIDEO_IVTV
-       default n
        help
          Enable the usage of the a DVB set of ioctls that were abused by
          IVTV driver for a while.
@@ -76,7 +75,6 @@ config VIDEO_FB_IVTV
 config VIDEO_FB_IVTV_FORCE_PAT
        bool "force cx23415 framebuffer init with x86 PAT enabled"
        depends on VIDEO_FB_IVTV && X86_PAT
-       default n
        help
          With PAT enabled, the cx23415 framebuffer driver does not
          utilize write-combined caching on the framebuffer memory.
index 011c1c2fcf1995bd426db324c943835a29646b93..853330c642f117b04fda14bc713f3127b6adc0b5 100644 (file)
@@ -5,7 +5,6 @@
 menuconfig V4L_PLATFORM_DRIVERS
        bool "V4L platform devices"
        depends on MEDIA_CAMERA_SUPPORT
-       default n
        help
          Say Y here to enable support for platform-specific V4L drivers.
 
@@ -154,7 +153,6 @@ config VIDEO_TI_CAL
        depends on SOC_DRA7XX || COMPILE_TEST
        select VIDEOBUF2_DMA_CONTIG
        select V4L2_FWNODE
-       default n
        help
          Support for the TI CAL (Camera Adaptation Layer) block
          found on DRA72X SoC.
@@ -167,7 +165,6 @@ menuconfig V4L_MEM2MEM_DRIVERS
        bool "Memory-to-memory multimedia devices"
        depends on VIDEO_V4L2
        depends on MEDIA_CAMERA_SUPPORT
-       default n
        help
          Say Y here to enable selecting drivers for V4L devices that
          use system memory for both source and destination buffers, as opposed
@@ -235,7 +232,6 @@ config VIDEO_MEDIATEK_MDP
        select VIDEOBUF2_DMA_CONTIG
        select V4L2_MEM2MEM_DEV
        select VIDEO_MEDIATEK_VPU
-       default n
        help
            It is a v4l2 driver and present in Mediatek MT8173 SoCs.
            The driver supports for scaling and color space conversion.
@@ -251,7 +247,6 @@ config VIDEO_MEDIATEK_VCODEC
        select VIDEOBUF2_DMA_CONTIG
        select V4L2_MEM2MEM_DEV
        select VIDEO_MEDIATEK_VPU
-       default n
        help
            Mediatek video codec driver provides HW capability to
            encode and decode in a range of video formats
@@ -275,7 +270,6 @@ config VIDEO_SAMSUNG_S5P_G2D
        depends on ARCH_S5PV210 || ARCH_EXYNOS || COMPILE_TEST
        select VIDEOBUF2_DMA_CONTIG
        select V4L2_MEM2MEM_DEV
-       default n
        help
          This is a v4l2 driver for Samsung S5P and EXYNOS4 G2D
          2d graphics accelerator.
@@ -295,7 +289,6 @@ config VIDEO_SAMSUNG_S5P_MFC
        depends on VIDEO_DEV && VIDEO_V4L2
        depends on ARCH_S5PV210 || ARCH_EXYNOS || COMPILE_TEST
        select VIDEOBUF2_DMA_CONTIG
-       default n
        help
            MFC 5.1 and 6.x driver for V4L2
 
@@ -458,7 +451,6 @@ config VIDEO_ROCKCHIP_RGA
        depends on ARCH_ROCKCHIP || COMPILE_TEST
        select VIDEOBUF2_DMA_SG
        select V4L2_MEM2MEM_DEV
-       default n
        help
          This is a v4l2 driver for Rockchip SOC RGA 2d graphics accelerator.
          Rockchip RGA is a separate 2D raster graphic acceleration unit.
@@ -476,7 +468,6 @@ config VIDEO_TI_VPE
        select VIDEO_TI_VPDMA
        select VIDEO_TI_SC
        select VIDEO_TI_CSC
-       default n
        help
          Support for the TI VPE(Video Processing Engine) block
          found on DRA7XX SoC.
@@ -529,7 +520,6 @@ config VIDEO_VIM2M
        depends on VIDEO_DEV && VIDEO_V4L2
        select VIDEOBUF2_VMALLOC
        select V4L2_MEM2MEM_DEV
-       default n
        help
          This is a virtual test device for the memory-to-memory driver
          framework.
@@ -541,7 +531,6 @@ endif #V4L_TEST_DRIVERS
 menuconfig DVB_PLATFORM_DRIVERS
        bool "DVB platform devices"
        depends on MEDIA_DIGITAL_TV_SUPPORT
-       default n
        help
          Say Y here to enable support for platform-specific Digital TV drivers.
 
@@ -677,7 +666,6 @@ endif #CEC_PLATFORM_DRIVERS
 menuconfig SDR_PLATFORM_DRIVERS
        bool "SDR platform devices"
        depends on MEDIA_SDR_SUPPORT
-       default n
        help
          Say Y here to enable support for platform-specific SDR Drivers.
 
index 30ce2ba120a11de833f5ec637901a9cc8a56dddb..0af804bfe64139aefcdde479c70977064ab02f18 100644 (file)
@@ -13,6 +13,5 @@ config VIDEO_OMAP2_VOUT
        select VIDEOBUF_DMA_CONTIG
        select OMAP2_VRFB if ARCH_OMAP2 || ARCH_OMAP3
        select FRAME_VECTOR
-       default n
        help
          V4L2 Display driver support for OMAP2/3 based boards.
index ad13329e3461299b87c4daa5a7d6249b75bb692a..6b662e2f50202c27acb96e6e7f9ee9996d8f2cea 100644 (file)
@@ -3,7 +3,6 @@ config VIDEO_VICODEC
        depends on VIDEO_DEV && VIDEO_V4L2
        select VIDEOBUF2_VMALLOC
        select V4L2_MEM2MEM_DEV
-       default n
        help
          Driver for a Virtual Codec
 
index 1de9bc9aa49bf8bbf89752746debd65f15b2de1e..12ee961e4f23a15439fc54c6d6222b8c11ddce82 100644 (file)
@@ -3,7 +3,6 @@ config VIDEO_VIMC
        depends on VIDEO_DEV && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API
        select VIDEOBUF2_VMALLOC
        select VIDEO_V4L2_TPG
-       default n
        help
          Skeleton driver for Virtual Media Controller
 
index 4b51d4d6cf93c9aec6041ffe990ef3db20ad9f51..a90719a450141e419b3749ae265993496b450dc1 100644 (file)
@@ -10,7 +10,6 @@ config VIDEO_VIVID
        select VIDEOBUF2_VMALLOC
        select VIDEOBUF2_DMA_CONTIG
        select VIDEO_V4L2_TPG
-       default n
        help
          Enables a virtual video driver. This driver emulates a webcam,
          TV, S-Video and HDMI capture hardware, including VBI support for
index 9cd00f64af322eebcd59f3796119badc35234711..2ffc10442d50f27774496431872880918596736d 100644 (file)
@@ -232,7 +232,6 @@ source "drivers/media/radio/wl128x/Kconfig"
 menuconfig V4L_RADIO_ISA_DRIVERS
        bool "ISA radio devices"
        depends on ISA || COMPILE_TEST
-       default n
        help
          Say Y here to enable support for these ISA drivers.
 
index 8c3fceef9a09a2b95c01c4a87b21f724997c8ee9..6bc5df1c1e4e61a69ffe1b87a09c978802f7e972 100644 (file)
@@ -2,7 +2,6 @@ config USB_S2255
        tristate "USB Sensoray 2255 video capture device"
        depends on VIDEO_V4L2
        select VIDEOBUF2_VMALLOC
-       default n
        help
          Say Y here if you want support for the Sensoray 2255 USB device.
          This driver can be compiled as a module, called s2255drv.
index 8402096f7796b8cec7b795ff8d175483e197f207..15e94296662e7a6927bd6b95c146ec61a306885b 100644 (file)
@@ -12,7 +12,6 @@ config VIDEO_V4L2
 
 config VIDEO_ADV_DEBUG
        bool "Enable advanced debug functionality on V4L2 drivers"
-       default n
        help
          Say Y here to enable advanced debugging functionality on some
          V4L devices.
@@ -20,7 +19,6 @@ config VIDEO_ADV_DEBUG
 
 config VIDEO_FIXED_MINOR_RANGES
        bool "Enable old-style fixed minor ranges on drivers/video devices"
-       default n
        help
          Say Y here to enable the old-style fixed-range minor assignments.
          Only useful if you rely on the old behavior and use mknod instead of udev.