Skip to content

Commit eaa2a87

Browse files
committed
kconfig: explain symbol value defaults
Added a few comments - no functional change. Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
1 parent cfb2a49 commit eaa2a87

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎scripts/kconfig/expr.h‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,17 +65,21 @@ enum symbol_type {
6565
S_UNKNOWN, S_BOOLEAN, S_TRISTATE, S_INT, S_HEX, S_STRING, S_OTHER
6666
};
6767

68+
/* enum values are used as index to symbol.def[] */
6869
enum {
6970
S_DEF_USER, /* main user value */
70-
S_DEF_AUTO,
71+
S_DEF_AUTO, /* values read from auto.conf */
72+
S_DEF_DEF3, /* Reserved for UI usage */
73+
S_DEF_DEF4, /* Reserved for UI usage */
74+
S_DEF_COUNT
7175
};
7276

7377
struct symbol {
7478
struct symbol *next;
7579
char *name;
7680
enum symbol_type type;
7781
struct symbol_value curr;
78-
struct symbol_value def[4];
82+
struct symbol_value def[S_DEF_COUNT];
7983
tristate visible;
8084
int flags;
8185
struct property *prop;

0 commit comments

Comments
 (0)