aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2017-12-15 10:38:02 -0500
committerMasahiro Yamada <yamada.masahiro@socionext.com>2018-01-21 10:49:29 -0500
commitb92d804a51796b77c7b2b11881b2700eaac88114 (patch)
tree702b5dcc63540d027325d8c465e30779e40fda76
parent1ae83c5c97bb90d7c272c03807b7c82911516610 (diff)
kconfig: drop 'boolean' keyword
No more users of this keyword. Drop it according to the notice by commit 6341e62b212a ("kconfig: use bool instead of boolean for type definition attributes"). Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Acked-by: Luis R. Rodriguez <mcgrof@kernel.org>
-rw-r--r--scripts/kconfig/confdata.c2
-rw-r--r--scripts/kconfig/kconf_id.c1
-rw-r--r--scripts/kconfig/mconf.c2
-rw-r--r--scripts/kconfig/menu.c4
-rw-r--r--scripts/kconfig/symbol.c2
-rw-r--r--scripts/kconfig/zconf.y2
6 files changed, 6 insertions, 7 deletions
diff --git a/scripts/kconfig/confdata.c b/scripts/kconfig/confdata.c
index 297b079ae4d9..027f5b4892cf 100644
--- a/scripts/kconfig/confdata.c
+++ b/scripts/kconfig/confdata.c
@@ -1123,7 +1123,7 @@ void set_all_choice_values(struct symbol *csym)
1123bool conf_set_all_new_symbols(enum conf_def_mode mode) 1123bool conf_set_all_new_symbols(enum conf_def_mode mode)
1124{ 1124{
1125 struct symbol *sym, *csym; 1125 struct symbol *sym, *csym;
1126 int i, cnt, pby, pty, ptm; /* pby: probability of boolean = y 1126 int i, cnt, pby, pty, ptm; /* pby: probability of bool = y
1127 * pty: probability of tristate = y 1127 * pty: probability of tristate = y
1128 * ptm: probability of tristate = m 1128 * ptm: probability of tristate = m
1129 */ 1129 */
diff --git a/scripts/kconfig/kconf_id.c b/scripts/kconfig/kconf_id.c
index 5abbc728fbc4..3ea9c5f9f730 100644
--- a/scripts/kconfig/kconf_id.c
+++ b/scripts/kconfig/kconf_id.c
@@ -20,7 +20,6 @@ static struct kconf_id kconf_id_array[] = {
20 { "tristate", T_TYPE, TF_COMMAND, S_TRISTATE }, 20 { "tristate", T_TYPE, TF_COMMAND, S_TRISTATE },
21 { "def_tristate", T_DEFAULT, TF_COMMAND, S_TRISTATE }, 21 { "def_tristate", T_DEFAULT, TF_COMMAND, S_TRISTATE },
22 { "bool", T_TYPE, TF_COMMAND, S_BOOLEAN }, 22 { "bool", T_TYPE, TF_COMMAND, S_BOOLEAN },
23 { "boolean", T_TYPE, TF_COMMAND, S_BOOLEAN },
24 { "def_bool", T_DEFAULT, TF_COMMAND, S_BOOLEAN }, 23 { "def_bool", T_DEFAULT, TF_COMMAND, S_BOOLEAN },
25 { "int", T_TYPE, TF_COMMAND, S_INT }, 24 { "int", T_TYPE, TF_COMMAND, S_INT },
26 { "hex", T_TYPE, TF_COMMAND, S_HEX }, 25 { "hex", T_TYPE, TF_COMMAND, S_HEX },
diff --git a/scripts/kconfig/mconf.c b/scripts/kconfig/mconf.c
index 315ce2c7cb9d..c829be8bb19f 100644
--- a/scripts/kconfig/mconf.c
+++ b/scripts/kconfig/mconf.c
@@ -246,7 +246,7 @@ search_help[] = N_(
246 " Selected by: BAR [=n]\n" 246 " Selected by: BAR [=n]\n"
247 "-----------------------------------------------------------------\n" 247 "-----------------------------------------------------------------\n"
248 "o The line 'Type:' shows the type of the configuration option for\n" 248 "o The line 'Type:' shows the type of the configuration option for\n"
249 " this symbol (boolean, tristate, string, ...)\n" 249 " this symbol (bool, tristate, string, ...)\n"
250 "o The line 'Prompt:' shows the text used in the menu structure for\n" 250 "o The line 'Prompt:' shows the text used in the menu structure for\n"
251 " this symbol\n" 251 " this symbol\n"
252 "o The 'Defined at' line tells at what file / line number the symbol\n" 252 "o The 'Defined at' line tells at what file / line number the symbol\n"
diff --git a/scripts/kconfig/menu.c b/scripts/kconfig/menu.c
index 93fe2fb841db..47bec3434fef 100644
--- a/scripts/kconfig/menu.c
+++ b/scripts/kconfig/menu.c
@@ -269,13 +269,13 @@ static void sym_check_prop(struct symbol *sym)
269 if (sym->type != S_BOOLEAN && sym->type != S_TRISTATE) 269 if (sym->type != S_BOOLEAN && sym->type != S_TRISTATE)
270 prop_warn(prop, 270 prop_warn(prop,
271 "config symbol '%s' uses %s, but is " 271 "config symbol '%s' uses %s, but is "
272 "not boolean or tristate", sym->name, use); 272 "not bool or tristate", sym->name, use);
273 else if (sym2->type != S_UNKNOWN && 273 else if (sym2->type != S_UNKNOWN &&
274 sym2->type != S_BOOLEAN && 274 sym2->type != S_BOOLEAN &&
275 sym2->type != S_TRISTATE) 275 sym2->type != S_TRISTATE)
276 prop_warn(prop, 276 prop_warn(prop,
277 "'%s' has wrong type. '%s' only " 277 "'%s' has wrong type. '%s' only "
278 "accept arguments of boolean and " 278 "accept arguments of bool and "
279 "tristate type", sym2->name, use); 279 "tristate type", sym2->name, use);
280 break; 280 break;
281 case P_RANGE: 281 case P_RANGE:
diff --git a/scripts/kconfig/symbol.c b/scripts/kconfig/symbol.c
index 55c95e0bb48a..c9123ed2b791 100644
--- a/scripts/kconfig/symbol.c
+++ b/scripts/kconfig/symbol.c
@@ -77,7 +77,7 @@ const char *sym_type_name(enum symbol_type type)
77{ 77{
78 switch (type) { 78 switch (type) {
79 case S_BOOLEAN: 79 case S_BOOLEAN:
80 return "boolean"; 80 return "bool";
81 case S_TRISTATE: 81 case S_TRISTATE:
82 return "tristate"; 82 return "tristate";
83 case S_INT: 83 case S_INT:
diff --git a/scripts/kconfig/zconf.y b/scripts/kconfig/zconf.y
index 798d56cba4a9..db5fbd8ac686 100644
--- a/scripts/kconfig/zconf.y
+++ b/scripts/kconfig/zconf.y
@@ -639,7 +639,7 @@ static void print_symbol(FILE *out, struct menu *menu)
639 fprintf(out, "\nconfig %s\n", sym->name); 639 fprintf(out, "\nconfig %s\n", sym->name);
640 switch (sym->type) { 640 switch (sym->type) {
641 case S_BOOLEAN: 641 case S_BOOLEAN:
642 fputs(" boolean\n", out); 642 fputs(" bool\n", out);
643 break; 643 break;
644 case S_TRISTATE: 644 case S_TRISTATE:
645 fputs(" tristate\n", out); 645 fputs(" tristate\n", out);