diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2016-09-14 12:32:10 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-09-20 10:29:01 +0200 |
commit | 3a690e4d6976517315f1dd73334920d749a28755 (patch) | |
tree | efc42f7961d65db235578a558abd8e15a5f44fbf /common/state/state.h | |
parent | 8c6ca8acc581fee5db9482985d291b4d5a6b67f7 (diff) | |
download | barebox-3a690e4d6976517315f1dd73334920d749a28755.tar.gz barebox-3a690e4d6976517315f1dd73334920d749a28755.tar.xz |
state: Add state to state_variable
A state variable should know which state it belongs to. Add field
for it to struct state_variable.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/state/state.h')
-rw-r--r-- | common/state/state.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/common/state/state.h b/common/state/state.h index 7b3e49512e..855ba9d868 100644 --- a/common/state/state.h +++ b/common/state/state.h @@ -138,6 +138,7 @@ struct variable_type { /* instance of a single variable */ struct state_variable { + struct state *state; enum state_variable_type type; struct list_head list; const char *name; @@ -152,7 +153,6 @@ struct state_variable { struct state_uint32 { struct state_variable var; struct param_d *param; - struct state *state; uint32_t value; uint32_t value_default; }; @@ -185,7 +185,6 @@ struct state_mac { struct state_string { struct state_variable var; struct param_d *param; - struct state *state; char *value; const char *value_default; char raw[]; |