Message ID | 20230329100951.1522322-5-sakari.ailus@linux.intel.com |
---|---|
State | Accepted |
Commit | 48c9996f1dfe92bd7318472651c9ad538d6d53b5 |
Headers | show |
Series | ACPI _CRS CSI-2 and MIPI DisCo for Imaging support | expand |
diff --git a/include/linux/property.h b/include/linux/property.h index 0a29db15ff34..b2562f512c49 100644 --- a/include/linux/property.h +++ b/include/linux/property.h @@ -477,6 +477,13 @@ struct software_node { const struct property_entry *properties; }; +#define SOFTWARE_NODE(_name_, _properties_, _parent_) \ + (struct software_node) { \ + .name = _name_, \ + .properties = _properties_, \ + .parent = _parent_, \ + } + bool is_software_node(const struct fwnode_handle *fwnode); const struct software_node * to_software_node(const struct fwnode_handle *fwnode);