summaryrefslogtreecommitdiffstats
path: root/include/linux/of.h
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@linux.intel.com>2017-06-06 05:37:37 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2017-06-21 20:55:34 -0400
commit3708184afc77bb67709a67a35d9f367ebd32cbc4 (patch)
tree75f7ab2569948a6f6bc3b95c75f9af5e90c12434 /include/linux/of.h
parentcde1f95f407a593ad6baf1b7b01daa2c6cbd34fd (diff)
device property: Move FW type specific functionality to FW specific files
The device and fwnode property API supports Devicetree, ACPI and pset properties. The implementation of this functionality for each firmware type was embedded in the fwnode property core. Move it out to firmware type specific locations, making it easier to maintain. Depends-on: ("of: Move OF property and graph API from base.c to property.c") Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
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 29b7b738b509..cdbfa88c32cf 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -100,10 +100,12 @@ struct of_reconfig_data {
100 100
101/* initialize a node */ 101/* initialize a node */
102extern struct kobj_type of_node_ktype; 102extern struct kobj_type of_node_ktype;
103extern const struct fwnode_operations of_fwnode_ops;
103static inline void of_node_init(struct device_node *node) 104static inline void of_node_init(struct device_node *node)
104{ 105{
105 kobject_init(&node->kobj, &of_node_ktype); 106 kobject_init(&node->kobj, &of_node_ktype);
106 node->fwnode.type = FWNODE_OF; 107 node->fwnode.type = FWNODE_OF;
108 node->fwnode.ops = &of_fwnode_ops;
107} 109}
108 110
109/* true when node is initialized */ 111/* true when node is initialized */