diff options
author | Sakari Ailus <sakari.ailus@linux.intel.com> | 2017-09-19 05:39:11 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-11-08 18:17:22 -0500 |
commit | cf89a31ca55272e1dfb9527b5a61eee4d417747a (patch) | |
tree | 7888feac76cd19e3a31890a1473927d915133e8e /include/linux/fwnode.h | |
parent | 39dae59d66acd86d1de24294bd2f343fd5e7a625 (diff) |
device property: Make fwnode_handle_get() return the fwnode
The fwnode_handle_get() function is used to obtain a reference to an
fwnode. A common usage pattern for the OF equivalent of the function is:
mynode = of_node_get(node);
Similarly make fwnode_handle_get() return the fwnode to which the
reference was obtained.
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/linux/fwnode.h')
-rw-r--r-- | include/linux/fwnode.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/fwnode.h b/include/linux/fwnode.h index 0c35b6caf0f6..411a84c6c400 100644 --- a/include/linux/fwnode.h +++ b/include/linux/fwnode.h | |||
@@ -68,7 +68,7 @@ struct fwnode_reference_args { | |||
68 | * @graph_parse_endpoint: Parse endpoint for port and endpoint id. | 68 | * @graph_parse_endpoint: Parse endpoint for port and endpoint id. |
69 | */ | 69 | */ |
70 | struct fwnode_operations { | 70 | struct fwnode_operations { |
71 | void (*get)(struct fwnode_handle *fwnode); | 71 | struct fwnode_handle *(*get)(struct fwnode_handle *fwnode); |
72 | void (*put)(struct fwnode_handle *fwnode); | 72 | void (*put)(struct fwnode_handle *fwnode); |
73 | bool (*device_is_available)(const struct fwnode_handle *fwnode); | 73 | bool (*device_is_available)(const struct fwnode_handle *fwnode); |
74 | bool (*property_present)(const struct fwnode_handle *fwnode, | 74 | bool (*property_present)(const struct fwnode_handle *fwnode, |