Skip to content

Commit baa23ec

Browse files
Clubfan22masahir0y
authored andcommitted
kconfig: Fix spelling of sym_is_changable
There is a spelling mistake in "changable", it is corrected to "changeable" and all call sites are updated accordingly. Signed-off-by: Marco Ammon <marco.ammon@fau.de> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
1 parent a94a48b commit baa23ec

7 files changed

Lines changed: 17 additions & 17 deletions

File tree

‎scripts/kconfig/conf.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ static int conf_askvalue(struct symbol *sym, const char *def)
9090
line[0] = '\n';
9191
line[1] = 0;
9292

93-
if (!sym_is_changable(sym)) {
93+
if (!sym_is_changeable(sym)) {
9494
printf("%s\n", def);
9595
line[0] = '\n';
9696
line[1] = 0;
@@ -234,7 +234,7 @@ static int conf_choice(struct menu *menu)
234234

235235
sym = menu->sym;
236236
is_new = !sym_has_value(sym);
237-
if (sym_is_changable(sym)) {
237+
if (sym_is_changeable(sym)) {
238238
conf_sym(menu);
239239
sym_calc_value(sym);
240240
switch (sym_get_tristate_value(sym)) {
@@ -418,7 +418,7 @@ static void check_conf(struct menu *menu)
418418

419419
sym = menu->sym;
420420
if (sym && !sym_has_value(sym)) {
421-
if (sym_is_changable(sym) ||
421+
if (sym_is_changeable(sym) ||
422422
(sym_is_choice(sym) && sym_get_tristate_value(sym) == yes)) {
423423
if (input_mode == listnewconfig) {
424424
if (sym->name) {

‎scripts/kconfig/confdata.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@ int conf_write_defconfig(const char *filename)
796796
goto next_menu;
797797
sym->flags &= ~SYMBOL_WRITE;
798798
/* If we cannot change the symbol - skip */
799-
if (!sym_is_changable(sym))
799+
if (!sym_is_changeable(sym))
800800
goto next_menu;
801801
/* If symbol equals to default value - skip */
802802
if (strcmp(sym_get_string_value(sym), sym_get_string_default(sym)) == 0)

‎scripts/kconfig/lkc_proto.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ tristate sym_toggle_tristate_value(struct symbol *sym);
4242
bool sym_string_valid(struct symbol *sym, const char *newval);
4343
bool sym_string_within_range(struct symbol *sym, const char *str);
4444
bool sym_set_string_value(struct symbol *sym, const char *newval);
45-
bool sym_is_changable(struct symbol *sym);
45+
bool sym_is_changeable(struct symbol *sym);
4646
struct property * sym_get_choice_prop(struct symbol *sym);
4747
const char * sym_get_string_value(struct symbol *sym);
4848

‎scripts/kconfig/mconf.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ static void build_conf(struct menu *menu)
536536
}
537537

538538
val = sym_get_tristate_value(sym);
539-
if (sym_is_changable(sym)) {
539+
if (sym_is_changeable(sym)) {
540540
switch (type) {
541541
case S_BOOLEAN:
542542
item_make("[%c]", val == no ? ' ' : '*');
@@ -587,7 +587,7 @@ static void build_conf(struct menu *menu)
587587
} else {
588588
switch (type) {
589589
case S_BOOLEAN:
590-
if (sym_is_changable(sym))
590+
if (sym_is_changeable(sym))
591591
item_make("[%c]", val == no ? ' ' : '*');
592592
else
593593
item_make("-%c-", val == no ? ' ' : '*');
@@ -600,7 +600,7 @@ static void build_conf(struct menu *menu)
600600
case mod: ch = 'M'; break;
601601
default: ch = ' '; break;
602602
}
603-
if (sym_is_changable(sym)) {
603+
if (sym_is_changeable(sym)) {
604604
if (sym->rev_dep.tri == mod)
605605
item_make("{%c}", ch);
606606
else
@@ -617,15 +617,15 @@ static void build_conf(struct menu *menu)
617617
if (tmp < 0)
618618
tmp = 0;
619619
item_add_str("%*c%s%s", tmp, ' ', menu_get_prompt(menu),
620-
(sym_has_value(sym) || !sym_is_changable(sym)) ?
620+
(sym_has_value(sym) || !sym_is_changeable(sym)) ?
621621
"" : " (NEW)");
622622
item_set_tag('s');
623623
item_set_data(menu);
624624
goto conf_childs;
625625
}
626626
}
627627
item_add_str("%*c%s%s", indent + 1, ' ', menu_get_prompt(menu),
628-
(sym_has_value(sym) || !sym_is_changable(sym)) ?
628+
(sym_has_value(sym) || !sym_is_changeable(sym)) ?
629629
"" : " (NEW)");
630630
if (menu->prompt->type == P_MENU) {
631631
item_add_str(" %s", menu_is_empty(menu) ? "----" : "--->");

‎scripts/kconfig/nconf.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,7 @@ static void build_conf(struct menu *menu)
803803
}
804804

805805
val = sym_get_tristate_value(sym);
806-
if (sym_is_changable(sym)) {
806+
if (sym_is_changeable(sym)) {
807807
switch (type) {
808808
case S_BOOLEAN:
809809
item_make(menu, 't', "[%c]",
@@ -857,7 +857,7 @@ static void build_conf(struct menu *menu)
857857
} else {
858858
switch (type) {
859859
case S_BOOLEAN:
860-
if (sym_is_changable(sym))
860+
if (sym_is_changeable(sym))
861861
item_make(menu, 't', "[%c]",
862862
val == no ? ' ' : '*');
863863
else
@@ -876,7 +876,7 @@ static void build_conf(struct menu *menu)
876876
ch = ' ';
877877
break;
878878
}
879-
if (sym_is_changable(sym)) {
879+
if (sym_is_changeable(sym)) {
880880
if (sym->rev_dep.tri == mod)
881881
item_make(menu,
882882
't', "{%c}", ch);
@@ -896,14 +896,14 @@ static void build_conf(struct menu *menu)
896896
item_add_str("%*c%s%s", tmp, ' ',
897897
menu_get_prompt(menu),
898898
(sym_has_value(sym) ||
899-
!sym_is_changable(sym)) ? "" :
899+
!sym_is_changeable(sym)) ? "" :
900900
" (NEW)");
901901
goto conf_childs;
902902
}
903903
}
904904
item_add_str("%*c%s%s", indent + 1, ' ',
905905
menu_get_prompt(menu),
906-
(sym_has_value(sym) || !sym_is_changable(sym)) ?
906+
(sym_has_value(sym) || !sym_is_changeable(sym)) ?
907907
"" : " (NEW)");
908908
if (menu->prompt && menu->prompt->type == P_MENU) {
909909
item_add_str(" %s", menu_is_empty(menu) ? "----" : "--->");

‎scripts/kconfig/qconf.cc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ void ConfigItem::updateMenu(void)
152152
case S_TRISTATE:
153153
char ch;
154154

155-
if (!sym_is_changable(sym) && list->optMode == normalOpt) {
155+
if (!sym_is_changeable(sym) && list->optMode == normalOpt) {
156156
setPixmap(promptColIdx, QIcon());
157157
setText(noColIdx, QString::null);
158158
setText(modColIdx, QString::null);

‎scripts/kconfig/symbol.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ const char *sym_get_string_value(struct symbol *sym)
785785
return (const char *)sym->curr.val;
786786
}
787787

788-
bool sym_is_changable(struct symbol *sym)
788+
bool sym_is_changeable(struct symbol *sym)
789789
{
790790
return sym->visible > sym->rev_dep.tri;
791791
}

0 commit comments

Comments
 (0)