summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2018-02-20 12:21:00 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2018-02-22 08:22:11 +0100
commita66a8d79871c3763cd488cd5e785415a5dbc36de (patch)
tree5b6b2120d4dcd9e43d06c8637cc7090186bbefc6 /include
parent359966df3721803a1e0873c98182e7280029b068 (diff)
downloadbarebox-a66a8d79871c3763cd488cd5e785415a5dbc36de.tar.gz
barebox-a66a8d79871c3763cd488cd5e785415a5dbc36de.tar.xz
state: remove unused arguments from state_new_from_node()
state_new_from_node() has arguments describing the backend path. These are never used in barebox, the backend path is always derived from the device nodes backend description. Remove these arguments. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/state.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/state.h b/include/state.h
index f1882ae026..4e995a19ef 100644
--- a/include/state.h
+++ b/include/state.h
@@ -10,8 +10,7 @@ int state_backend_dtb_file(struct state *state, const char *of_path,
int state_backend_raw_file(struct state *state, const char *of_path,
const char *path, off_t offset, size_t size);
-struct state *state_new_from_node(struct device_node *node, char *path,
- off_t offset, size_t max_size, bool readonly);
+struct state *state_new_from_node(struct device_node *node, bool readonly);
void state_release(struct state *state);
struct state *state_by_name(const char *name);