aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/property.h
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@linux.intel.com>2017-06-06 12:37:39 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2017-06-22 02:55:34 +0200
commit2294b3af05e9b3fe0b84a78971e709037bd7593c (patch)
tree36e1766ebc6f3d159ab2bdfca2b71244689b503c /include/linux/property.h
parentdevice property: Move fwnode graph ops to firmware specific locations (diff)
downloadlinux-dev-2294b3af05e9b3fe0b84a78971e709037bd7593c.tar.xz
linux-dev-2294b3af05e9b3fe0b84a78971e709037bd7593c.zip
device property: Introduce fwnode_device_is_available()
Add fwnode_device_is_available() to tell whether the device corresponding to a certain fwnode_handle is available for use. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/linux/property.h')
-rw-r--r--include/linux/property.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/property.h b/include/linux/property.h
index 2f482616a2f2..7be014af78ed 100644
--- a/include/linux/property.h
+++ b/include/linux/property.h
@@ -51,6 +51,7 @@ int device_property_read_string(struct device *dev, const char *propname,
int device_property_match_string(struct device *dev,
const char *propname, const char *string);
+bool fwnode_device_is_available(struct fwnode_handle *fwnode);
bool fwnode_property_present(struct fwnode_handle *fwnode, const char *propname);
int fwnode_property_read_u8_array(struct fwnode_handle *fwnode,
const char *propname, u8 *val,