kconfig: syntax cleanup - drop support for "depends/requires/def_boolean"
Remove the following redundant and never or rarely used kconfig syntax: - "def_boolean" (same as "def_bool") - "requires" (same as "depends on") - "depends" (same as "depends on") This patch contains the code changes and Kconfig updates. The shipped files are in next patch to let actual codechange stand out. Signed-off-by: Adrian Bunk <bunk@kernel.org> Cc: "Randy.Dunlap" <rdunlap@xenotime.net> Cc: Bryan Wu <bryan.wu@analog.com> Cc: Paul Mackerras <paulus@samba.org> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Dmitry Torokhov <dtor@mail.ru> Cc: "John W. Linville" <linville@tuxdriver.com> Cc: Roman Zippel <zippel@linux-m68k.org> Cc: Richard Purdie <rpurdie@rpsys.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
This commit is contained in:
Родитель
4f1127e204
Коммит
247537b9a2
|
@ -758,7 +758,7 @@ config BFIN_DMA_5XX
|
||||||
choice
|
choice
|
||||||
prompt "Uncached SDRAM region"
|
prompt "Uncached SDRAM region"
|
||||||
default DMA_UNCACHED_1M
|
default DMA_UNCACHED_1M
|
||||||
depends BFIN_DMA_5XX
|
depends on BFIN_DMA_5XX
|
||||||
config DMA_UNCACHED_2M
|
config DMA_UNCACHED_2M
|
||||||
bool "Enable 2M DMA region"
|
bool "Enable 2M DMA region"
|
||||||
config DMA_UNCACHED_1M
|
config DMA_UNCACHED_1M
|
||||||
|
|
|
@ -144,7 +144,7 @@ config BDI_SWITCH
|
||||||
|
|
||||||
config BOOTX_TEXT
|
config BOOTX_TEXT
|
||||||
bool "Support for early boot text console (BootX or OpenFirmware only)"
|
bool "Support for early boot text console (BootX or OpenFirmware only)"
|
||||||
depends PPC_OF && PPC_MULTIPLATFORM
|
depends on PPC_OF && PPC_MULTIPLATFORM
|
||||||
help
|
help
|
||||||
Say Y here to see progress messages from the boot firmware in text
|
Say Y here to see progress messages from the boot firmware in text
|
||||||
mode. Requires either BootX or Open Firmware.
|
mode. Requires either BootX or Open Firmware.
|
||||||
|
@ -234,12 +234,12 @@ endchoice
|
||||||
|
|
||||||
config PPC_EARLY_DEBUG_44x_PHYSLOW
|
config PPC_EARLY_DEBUG_44x_PHYSLOW
|
||||||
hex "Low 32 bits of early debug UART physical address"
|
hex "Low 32 bits of early debug UART physical address"
|
||||||
depends PPC_EARLY_DEBUG_44x
|
depends on PPC_EARLY_DEBUG_44x
|
||||||
default "0x40000200"
|
default "0x40000200"
|
||||||
|
|
||||||
config PPC_EARLY_DEBUG_44x_PHYSHIGH
|
config PPC_EARLY_DEBUG_44x_PHYSHIGH
|
||||||
hex "EPRN of early debug UART physical address"
|
hex "EPRN of early debug UART physical address"
|
||||||
depends PPC_EARLY_DEBUG_44x
|
depends on PPC_EARLY_DEBUG_44x
|
||||||
default "0x1"
|
default "0x1"
|
||||||
|
|
||||||
config PPC_EARLY_DEBUG_CPM_ADDR
|
config PPC_EARLY_DEBUG_CPM_ADDR
|
||||||
|
|
|
@ -117,7 +117,7 @@ config RTAS_FLASH
|
||||||
|
|
||||||
config PPC_PMI
|
config PPC_PMI
|
||||||
tristate "Support for PMI"
|
tristate "Support for PMI"
|
||||||
depends PPC_IBM_CELL_BLADE
|
depends on PPC_IBM_CELL_BLADE
|
||||||
help
|
help
|
||||||
PMI (Platform Management Interrupt) is a way to
|
PMI (Platform Management Interrupt) is a way to
|
||||||
communicate with the BMC (Baseboard Mangement Controller).
|
communicate with the BMC (Baseboard Mangement Controller).
|
||||||
|
|
|
@ -152,7 +152,7 @@ config INPUT_POWERMATE
|
||||||
|
|
||||||
config INPUT_YEALINK
|
config INPUT_YEALINK
|
||||||
tristate "Yealink usb-p1k voip phone"
|
tristate "Yealink usb-p1k voip phone"
|
||||||
depends EXPERIMENTAL
|
depends on EXPERIMENTAL
|
||||||
depends on USB_ARCH_HAS_HCD
|
depends on USB_ARCH_HAS_HCD
|
||||||
select USB
|
select USB
|
||||||
help
|
help
|
||||||
|
|
|
@ -83,7 +83,7 @@ config LEDS_WRAP
|
||||||
|
|
||||||
config LEDS_H1940
|
config LEDS_H1940
|
||||||
tristate "LED Support for iPAQ H1940 device"
|
tristate "LED Support for iPAQ H1940 device"
|
||||||
depends LEDS_CLASS && ARCH_H1940
|
depends on LEDS_CLASS && ARCH_H1940
|
||||||
help
|
help
|
||||||
This option enables support for the LEDs on the h1940.
|
This option enables support for the LEDs on the h1940.
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ if PHONE
|
||||||
|
|
||||||
config PHONE_IXJ
|
config PHONE_IXJ
|
||||||
tristate "QuickNet Internet LineJack/PhoneJack support"
|
tristate "QuickNet Internet LineJack/PhoneJack support"
|
||||||
depends ISA || PCI
|
depends on ISA || PCI
|
||||||
---help---
|
---help---
|
||||||
Say M if you have a telephony card manufactured by Quicknet
|
Say M if you have a telephony card manufactured by Quicknet
|
||||||
Technologies, Inc. These include the Internet PhoneJACK and
|
Technologies, Inc. These include the Internet PhoneJACK and
|
||||||
|
|
|
@ -23,7 +23,6 @@ help, T_HELP, TF_COMMAND
|
||||||
if, T_IF, TF_COMMAND|TF_PARAM
|
if, T_IF, TF_COMMAND|TF_PARAM
|
||||||
endif, T_ENDIF, TF_COMMAND
|
endif, T_ENDIF, TF_COMMAND
|
||||||
depends, T_DEPENDS, TF_COMMAND
|
depends, T_DEPENDS, TF_COMMAND
|
||||||
requires, T_REQUIRES, TF_COMMAND
|
|
||||||
optional, T_OPTIONAL, TF_COMMAND
|
optional, T_OPTIONAL, TF_COMMAND
|
||||||
default, T_DEFAULT, TF_COMMAND, S_UNKNOWN
|
default, T_DEFAULT, TF_COMMAND, S_UNKNOWN
|
||||||
prompt, T_PROMPT, TF_COMMAND
|
prompt, T_PROMPT, TF_COMMAND
|
||||||
|
@ -32,7 +31,6 @@ def_tristate, T_DEFAULT, TF_COMMAND, S_TRISTATE
|
||||||
bool, T_TYPE, TF_COMMAND, S_BOOLEAN
|
bool, T_TYPE, TF_COMMAND, S_BOOLEAN
|
||||||
boolean, T_TYPE, TF_COMMAND, S_BOOLEAN
|
boolean, T_TYPE, TF_COMMAND, S_BOOLEAN
|
||||||
def_bool, T_DEFAULT, TF_COMMAND, S_BOOLEAN
|
def_bool, T_DEFAULT, TF_COMMAND, S_BOOLEAN
|
||||||
def_boolean, T_DEFAULT, TF_COMMAND, S_BOOLEAN
|
|
||||||
int, T_TYPE, TF_COMMAND, S_INT
|
int, T_TYPE, TF_COMMAND, S_INT
|
||||||
hex, T_TYPE, TF_COMMAND, S_HEX
|
hex, T_TYPE, TF_COMMAND, S_HEX
|
||||||
string, T_TYPE, TF_COMMAND, S_STRING
|
string, T_TYPE, TF_COMMAND, S_STRING
|
||||||
|
|
|
@ -64,7 +64,6 @@ static struct menu *current_menu, *current_entry;
|
||||||
%token <id>T_IF
|
%token <id>T_IF
|
||||||
%token <id>T_ENDIF
|
%token <id>T_ENDIF
|
||||||
%token <id>T_DEPENDS
|
%token <id>T_DEPENDS
|
||||||
%token <id>T_REQUIRES
|
|
||||||
%token <id>T_OPTIONAL
|
%token <id>T_OPTIONAL
|
||||||
%token <id>T_PROMPT
|
%token <id>T_PROMPT
|
||||||
%token <id>T_TYPE
|
%token <id>T_TYPE
|
||||||
|
@ -418,16 +417,6 @@ depends: T_DEPENDS T_ON expr T_EOL
|
||||||
{
|
{
|
||||||
menu_add_dep($3);
|
menu_add_dep($3);
|
||||||
printd(DEBUG_PARSE, "%s:%d:depends on\n", zconf_curname(), zconf_lineno());
|
printd(DEBUG_PARSE, "%s:%d:depends on\n", zconf_curname(), zconf_lineno());
|
||||||
}
|
|
||||||
| T_DEPENDS expr T_EOL
|
|
||||||
{
|
|
||||||
menu_add_dep($2);
|
|
||||||
printd(DEBUG_PARSE, "%s:%d:depends\n", zconf_curname(), zconf_lineno());
|
|
||||||
}
|
|
||||||
| T_REQUIRES expr T_EOL
|
|
||||||
{
|
|
||||||
menu_add_dep($2);
|
|
||||||
printd(DEBUG_PARSE, "%s:%d:requires\n", zconf_curname(), zconf_lineno());
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/* prompt statement */
|
/* prompt statement */
|
||||||
|
|
Загрузка…
Ссылка в новой задаче