summaryrefslogtreecommitdiff
path: root/include/linux/of.h
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2023-03-29 10:52:00 -0500
committerRob Herring <robh@kernel.org>2023-04-10 18:32:31 -0500
commitf5a2dc7516571e3a0173ca206b30636451a9deab (patch)
tree6ebcc2b1a1eff18f0b841bb605ba4a1bc4a96728 /include/linux/of.h
parent4c32fb7dcf65b16cc7b2837ccfc35d00be92bddb (diff)
downloadlinux-next-f5a2dc7516571e3a0173ca206b30636451a9deab.tar.gz
of: Move of_device_get_match_data() declaration
of_device.h mostly defines functions for bus drivers whereas of_device_get_match_data() is used by drivers. Let's move it to of.h. Link: https://lore.kernel.org/r/20230329-dt-cpu-header-cleanups-v1-3-581e2605fe47@kernel.org Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'include/linux/of.h')
-rw-r--r--include/linux/of.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/of.h b/include/linux/of.h
index 36cf94596eba..b7118d68c73a 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -416,6 +416,8 @@ extern int of_detach_node(struct device_node *);
#define of_match_ptr(_ptr) (_ptr)
+extern const void *of_device_get_match_data(const struct device *dev);
+
/*
* struct property *prop;
* const __be32 *p;