summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2016-09-14 12:38:25 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2017-03-31 13:57:15 +0200
commitaaaea5f5ea5edb51659da12746ef14448cfb7a13 (patch)
tree5a2d5d958353a8cd296cd70678d41e794621fa84
parent95f02e8ea137dedf10ff52422204ffd1295b5a75 (diff)
downloaddt-utils-aaaea5f5ea5edb51659da12746ef14448cfb7a13.tar.gz
dt-utils-aaaea5f5ea5edb51659da12746ef14448cfb7a13.tar.xz
state: make locally used function static
state_set_dirty() is only used in one file, make it static. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--src/barebox-state/state.h1
-rw-r--r--src/barebox-state/state_variables.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/src/barebox-state/state.h b/src/barebox-state/state.h
index 1235dcb..1befcf4 100644
--- a/src/barebox-state/state.h
+++ b/src/barebox-state/state.h
@@ -189,7 +189,6 @@ struct state_string {
char raw[];
};
-int state_set_dirty(struct param_d *p, void *priv);
int state_from_node(struct state *state, struct device_node *node, bool create);
struct device_node *state_to_node(struct state *state,
struct device_node *parent,
diff --git a/src/barebox-state/state_variables.c b/src/barebox-state/state_variables.c
index 03ea28b..2e4a98c 100644
--- a/src/barebox-state/state_variables.c
+++ b/src/barebox-state/state_variables.c
@@ -34,7 +34,7 @@
* @param priv
* @return
*/
-int state_set_dirty(struct param_d *p, void *priv)
+static int state_set_dirty(struct param_d *p, void *priv)
{
struct state_variable *sv = priv;