summaryrefslogtreecommitdiffstats
path: root/common/state/state.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2017-03-22 12:36:40 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2017-03-31 18:43:53 +0200
commit8b5b42537ab59b78d24dca35cb010f93ca71deb2 (patch)
tree23a8cb4da9f93c2e7a0c04a73267af73cc6643ea /common/state/state.c
parent4b7957533e1d9d2bc690b87456ad803d52cef33b (diff)
downloadbarebox-8b5b42537ab59b78d24dca35cb010f93ca71deb2.tar.gz
barebox-8b5b42537ab59b78d24dca35cb010f93ca71deb2.tar.xz
state: pass struct state * to storage functions
We can get a state_backend_storage * and the device * from struct state, so pass this to the storage functions rather than the two pointers. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/state/state.c')
-rw-r--r--common/state/state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/state/state.c b/common/state/state.c
index 87b704feba..8d2dca2523 100644
--- a/common/state/state.c
+++ b/common/state/state.c
@@ -602,7 +602,7 @@ struct state *state_new_from_node(struct device_node *node, char *path,
if (ret)
goto out_release_state;
- ret = state_storage_init(&state->storage, &state->dev, path, offset,
+ ret = state_storage_init(state, path, offset,
max_size, stridesize, storage_type);
if (ret)
goto out_release_state;