of: Add of_fwnode_handle() to convert device nodes to fwnode_handle
authorSakari Ailus <sakari.ailus@linux.intel.com>
Tue, 28 Mar 2017 07:52:23 +0000 (10:52 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 28 Mar 2017 22:00:28 +0000 (00:00 +0200)
commit67831837e0b192fe0b8ee8b5e502d95ad2c497c0
treef82c4e03dcb50a4c02a4bd3cefe2f411736bea05
parente7887c284969a23a98fe1aff2f631c5ccdcd1757
of: Add of_fwnode_handle() to convert device nodes to fwnode_handle

of_fwnode_handle() returns a struct fwnode_handle of the struct
device_node. This may be used on the fwnode property API.

Use a macro instead of a function in order to support const and non-const
arguments.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
include/linux/of.h