// SPDX-License-Identifier: GPL-2.0/* * property.c - Unified device property interface. * * Copyright (C) 2014, Intel Corporation * Authors: Rafael J. Wysocki <rafael.j.wysocki@intel.com> * Mika Westerberg <mika.westerberg@linux.intel.com> */#include<linux/acpi.h>#include<linux/export.h>#include<linux/kernel.h>#include<linux/of.h>#include<linux/of_address.h>#include<linux/of_graph.h>#include<linux/of_irq.h>#include<linux/property.h>#include<linux/phy.h>structfwnode_handle*__dev_fwnode(structdevice*dev){returnIS_ENABLED(CONFIG_OF)&&dev->of_node?of_fwnode_handle(dev->of_node):dev->fwnode;}EXPORT_SYMBOL_GPL(__dev_fwnode);conststructfwnode_handle*__dev_fwnode_const(conststructdevice*dev){returnIS_ENABLED(CONFIG_OF)&&dev->of_node?of_fwnode_handle(dev->of_node):dev->fwnode;}EXPORT_SYMBOL_GPL(__dev_fwnode_const);/** * device_property_present - check if a property of a device is present * @dev: Device whose property is being checked