asm-generic: make get_user() clear the destination on errors
[linux-2.6-block.git] / include / acpi / acpi_bus.h
index 788c6c35291a42c448296876ab6c32bff25a5200..c1a524de67c5b8ab8f1c63ea77365dec085fcd91 100644 (file)
@@ -420,6 +420,13 @@ static inline struct acpi_data_node *to_acpi_data_node(struct fwnode_handle *fwn
                container_of(fwnode, struct acpi_data_node, fwnode) : NULL;
 }
 
+static inline bool acpi_data_node_match(struct fwnode_handle *fwnode,
+                                       const char *name)
+{
+       return is_acpi_data_node(fwnode) ?
+               (!strcmp(to_acpi_data_node(fwnode)->name, name)) : false;
+}
+
 static inline struct fwnode_handle *acpi_fwnode_handle(struct acpi_device *adev)
 {
        return &adev->fwnode;