// 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/device.h>#include<linux/err.h>#include<linux/export.h>#include<linux/kconfig.h>#include<linux/of.h>#include<linux/property.h>#include<linux/phy.h>#include<linux/slab.h>#include<linux/string.h>#include<linux/types.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 * @propname: Name of the property * * Check if property @propname is pr