of: Support const and non-const use for to_of_node()
authorSakari Ailus <sakari.ailus@linux.intel.com>
Wed, 24 May 2017 14:53:55 +0000 (17:53 +0300)
committerRob Herring <robh@kernel.org>
Thu, 1 Jun 2017 13:50:49 +0000 (08:50 -0500)
commitd20dc1493db438fbbfb7733adc82f472dd8a0789
treea81ff52fe7e4ed471df24a2e1c48a7d25deb1fcd
parentdebd3a3b27c76c65a7d032b6f01710e6a6d555ab
of: Support const and non-const use for to_of_node()

Turn to_of_node() into a macro in order to support both const and
non-const use. Additionally make the fwnode argument to is_of_node() const
as well.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Signed-off-by: Rob Herring <robh@kernel.org>
include/linux/of.h