summaryrefslogtreecommitdiffstats
path: root/include/state.h
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2015-05-13 12:12:30 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2015-05-15 07:03:49 +0200
commit65a8f2f8f1066b589560b1f09f3ae1da485335eb (patch)
tree8d5e3dc5d28357478ff895436e393923c9e88bae /include/state.h
parent74840ebe98f81ad839f4808ea5daf3cd27ac42f5 (diff)
downloadbarebox-65a8f2f8f1066b589560b1f09f3ae1da485335eb.tar.gz
barebox-65a8f2f8f1066b589560b1f09f3ae1da485335eb.tar.xz
state: backend: support phandle and of_path references
This patch improves the backend property, it can be either a phandle or a of_path. During probe() of the state driver the backend property is dereferenced and the resulting of_path is saved in the state context. In a later patch it will be used to generate a phandle reference to the backend during DT fixup. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/state.h')
-rw-r--r--include/state.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/state.h b/include/state.h
index 116ec6301c..08c4e8654b 100644
--- a/include/state.h
+++ b/include/state.h
@@ -5,9 +5,10 @@
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_node(const char *name, struct device_node *node);
void state_release(struct state *state);