summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlrich Ölmann <u.oelmann@pengutronix.de>2019-09-30 09:26:07 +0200
committerRoland Hieber <rhi@pengutronix.de>2019-10-11 16:49:38 +0200
commitbaee943b2c98155349e5f0fef5c23c76b695e90f (patch)
tree3e10e03e3c06044e9cc94c7842e8a719d3adcab5
parentb548f61a04604c13d39873216814c11e19e81240 (diff)
downloaddt-utils-baee943b2c98155349e5f0fef5c23c76b695e90f.tar.gz
dt-utils-baee943b2c98155349e5f0fef5c23c76b695e90f.tar.xz
state: drop unused code and declarations for non-existing functions
This ports the following barebox commit: | commit 452a99483cec36933ff59e6f0a796ec2ee1aea65 | Author: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | Date: Wed Sep 11 21:27:37 2019 +0200 | | state: drop unused code and declarations for non-existing functions | | state_get_name() is not used and so can be removed. | state_backend_dtb_file() and state_backend_raw_file() were dropped in | c999b507da98 ("state: Refactor state framework"). | | Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
-rw-r--r--src/barebox-state/state.c7
-rw-r--r--src/state.h5
2 files changed, 0 insertions, 12 deletions
diff --git a/src/barebox-state/state.c b/src/barebox-state/state.c
index e95f91e..f528b3e 100644
--- a/src/barebox-state/state.c
+++ b/src/barebox-state/state.c
@@ -713,13 +713,6 @@ struct state *state_by_node(const struct device_node *node)
return NULL;
}
-int state_get_name(const struct state *state, char const **name)
-{
- *name = xstrdup(state->name);
-
- return 0;
-}
-
int state_read_mac(struct state *state, const char *name, u8 *buf)
{
struct state_variable *svar;
diff --git a/src/state.h b/src/state.h
index 132c0c3..c4db9fe 100644
--- a/src/state.h
+++ b/src/state.h
@@ -5,17 +5,12 @@
struct state;
-int state_backend_dtb_file(struct state *state, const char *of_path,
- const char *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, bool readonly);
void state_release(struct state *state);
struct state *state_by_name(const char *name);
struct state *state_by_node(const struct device_node *node);
-int state_get_name(const struct state *state, char const **name);
int state_load(struct state *state);
int state_load_no_auth(struct state *state);