summaryrefslogtreecommitdiff
path: root/include/of.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2020-11-24 16:21:17 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2020-11-25 06:30:54 +0100
commitfa9179444c36f9daf5010215cf8e4dcb3bd1ffb2 (patch)
tree6b90c82b78be1e9d89dd8f11c7775e36bc8b378b /include/of.h
parent9aa53beb03fd811054b7d14d729a7145f1eeb2cb (diff)
downloadbarebox-fa9179444c36f9daf5010215cf8e4dcb3bd1ffb2.tar.gz
of: partitions: export of_fixup_partitions
of_partitions_register_fixup() tries to automatically determine the node to fixup. Sometimes this doesn't work, so add of_fixup_partitions() that can called at fixup time with a device node determined by subsystem or driver code. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/of.h')
-rw-r--r--include/of.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/of.h b/include/of.h
index dd93e44aac..6dce76fd8c 100644
--- a/include/of.h
+++ b/include/of.h
@@ -275,6 +275,7 @@ extern struct device_d *of_device_enable_and_register_by_alias(
struct cdev *of_parse_partition(struct cdev *cdev, struct device_node *node);
int of_parse_partitions(struct cdev *cdev, struct device_node *node);
+int of_fixup_partitions(struct device_node *np, struct cdev *cdev);
int of_partitions_register_fixup(struct cdev *cdev);
int of_device_is_stdout_path(struct device_d *dev);
const char *of_get_model(void);
@@ -303,6 +304,11 @@ static inline int of_parse_partitions(struct cdev *cdev,
return -EINVAL;
}
+static inline int of_fixup_partitions(struct device_node *np, struct cdev *cdev)
+{
+ return -ENOSYS;
+}
+
static inline int of_partitions_register_fixup(struct cdev *cdev)
{
return -ENOSYS;