summaryrefslogtreecommitdiffstats
path: root/src/barebox-state/state.h
diff options
context:
space:
mode:
authorUlrich Ölmann <u.oelmann@pengutronix.de>2018-12-18 14:57:54 +0100
committerRoland Hieber <rhi@pengutronix.de>2019-01-07 15:47:56 +0100
commit2157caeffeb08a18a4971a05807e37de701ad41b (patch)
treecc89358d0558184b8f9089ff2583b56b30b3d4fe /src/barebox-state/state.h
parent498e2d84d0867b9ba6dcf5b7613ca9983c673b33 (diff)
downloaddt-utils-2157caeffeb08a18a4971a05807e37de701ad41b.tar.gz
dt-utils-2157caeffeb08a18a4971a05807e37de701ad41b.tar.xz
state: find backend node with its reproducible name
This ports the following barebox commit and removes the now no longer used noop definition of of_find_node_by_devpath() that was introduced in commit "state: find device node from device path, not from device node path": | commit 1eddb0d3821d7bb368fa6b092b980b89fc47db28 | Author: Sascha Hauer <s.hauer@pengutronix.de> | Date: Tue Feb 20 12:41:26 2018 +0100 | | state: find backend node with its reproducible name | | When fixing up the kernels state nodes we depended on the full node path | of the input device tree. This does not work when the kernel device tree | has different names. This has happened lately when the i.MX6 device | trees got their leading zeroes removed from the node names. | | Use of_find_node_by_reproducible_name() to find the node corresponding | to the storage backend node in the kernel device tree. | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de> Signed-off-by: Roland Hieber <rhi@pengutronix.de>
Diffstat (limited to 'src/barebox-state/state.h')
-rw-r--r--src/barebox-state/state.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/barebox-state/state.h b/src/barebox-state/state.h
index da1c6ac..6670523 100644
--- a/src/barebox-state/state.h
+++ b/src/barebox-state/state.h
@@ -115,6 +115,7 @@ struct state {
struct state_backend_format *format;
struct state_backend_storage storage;
char *backend_path;
+ char *backend_reproducible_name;
};
enum state_convert {