]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/of/property.c
device property: Make fwnode_handle_get() return the fwnode
authorSakari Ailus <sakari.ailus@linux.intel.com>
Tue, 19 Sep 2017 09:39:11 +0000 (12:39 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 8 Nov 2017 23:17:22 +0000 (00:17 +0100)
commitcf89a31ca55272e1dfb9527b5a61eee4d417747a
tree7888feac76cd19e3a31890a1473927d915133e8e
parent39dae59d66acd86d1de24294bd2f343fd5e7a625
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>
drivers/base/property.c
drivers/of/property.c
include/linux/fwnode.h
include/linux/property.h