summaryrefslogtreecommitdiffstats
path: root/src/libdt.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2014-03-18 15:36:05 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2014-03-18 15:36:05 +0100
commita11bd0015cdb3929aed681fd113c7e20edb39e34 (patch)
treeef247915f6c8738a29bd35826b8dd0303a1809a4 /src/libdt.c
parent2f46c8f9e562a88c9dbbb1d93c21d6f08c106816 (diff)
downloaddt-utils-a11bd0015cdb3929aed681fd113c7e20edb39e34.tar.gz
dt-utils-a11bd0015cdb3929aed681fd113c7e20edb39e34.tar.xz
document of_parse_partition_from_path
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'src/libdt.c')
-rw-r--r--src/libdt.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libdt.c b/src/libdt.c
index 2835fb1..d367e96 100644
--- a/src/libdt.c
+++ b/src/libdt.c
@@ -1983,6 +1983,16 @@ out:
return dev;
}
+/*
+ * of_parse_partition_from_path - parse devicenode for partition 'name'
+ * @op the context to work on
+ * @name the partition name to look for
+ *
+ * search devicetree node for a partition subnode with label 'name'.
+ * When found, fill in op->offset and op->size accordingly. This is for
+ * resembling the OF partition parser for devices which do not parse
+ * OF partitions in the kernel.
+ */
int of_parse_partition_from_path(struct of_path *op, const char *name)
{
struct device_node *node;