summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2015-06-09 09:26:44 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2015-06-09 09:26:44 +0200
commite349701487198df5d029621f440004b5a46529f5 (patch)
tree7c5f09d2fd85b319e3c65714c9f3e161d4ceae23 /include
parent3a32e7acd4867705f0b2b822f3dd88b25cae987a (diff)
parent2532f5dfbfe5bb995020e542f698c1c1d1e5f213 (diff)
downloadbarebox-e349701487198df5d029621f440004b5a46529f5.tar.gz
barebox-e349701487198df5d029621f440004b5a46529f5.tar.xz
Merge branch 'for-next/state'
Diffstat (limited to 'include')
-rw-r--r--include/habv4.h2
-rw-r--r--include/of.h1
-rw-r--r--include/state.h9
3 files changed, 7 insertions, 5 deletions
diff --git a/include/habv4.h b/include/habv4.h
index fb6ed99d82..f9bf74f3b9 100644
--- a/include/habv4.h
+++ b/include/habv4.h
@@ -21,7 +21,7 @@
#ifdef CONFIG_HABV4
int habv4_get_status(void);
#else
-static inline int habv4_get_status()
+static inline int habv4_get_status(void)
{
return -EPERM;
}
diff --git a/include/of.h b/include/of.h
index e73cd7a446..c02f5f49ab 100644
--- a/include/of.h
+++ b/include/of.h
@@ -243,6 +243,7 @@ struct device_d *of_find_device_by_node_path(const char *path);
#define OF_FIND_PATH_FLAGS_BB 1 /* return .bb device if available */
int of_find_path(struct device_node *node, const char *propname, char **outpath, unsigned flags);
int of_register_fixup(int (*fixup)(struct device_node *, void *), void *context);
+int of_unregister_fixup(int (*fixup)(struct device_node *, void *), void *context);
struct device_node *of_find_node_by_alias(struct device_node *root,
const char *alias);
struct device_node *of_find_node_by_path_or_alias(struct device_node *root,
diff --git a/include/state.h b/include/state.h
index e96d3bfb2e..08c4e8654b 100644
--- a/include/state.h
+++ b/include/state.h
@@ -5,12 +5,13 @@
struct state;
-int state_backend_dtb_file(struct state *state, const char *path);
-int state_backend_raw_file(struct state *state, const char *path,
- off_t offset, size_t size);
+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_fdt(const char *name, void *fdt);
struct state *state_new_from_node(const char *name, struct device_node *node);
+void state_release(struct state *state);
struct state *state_by_name(const char *name);
struct state *state_by_node(const struct device_node *node);