device property: Unify access to of_node
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 4 Jun 2021 16:50:47 +0000 (19:50 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 7 Jun 2021 12:43:41 +0000 (14:43 +0200)
commitfb38f314fbd173e2e9f9f0f2e720a5f4889562da
treeb4f647c8313fdb004ebe8b9f6932a6c0dce4db0e
parent3d7c821c1d8071e517048c8b4afdf33109441c0f
device property: Unify access to of_node

Historically we have a few variants how we access dev->fwnode
and dev->of_node. Some of the functions during development
gained different versions of the getters. Unify access to of_node
and as a side change slightly refactor ACPI specific branches.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/property.c
include/linux/property.h