Merge tag 'driver-core-5.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git...
[platform/kernel/linux-rpi.git] / include / linux / fwnode.h
index dfefd43..ed4e67a 100644 (file)
@@ -55,6 +55,13 @@ struct fwnode_endpoint {
        const struct fwnode_handle *local_fwnode;
 };
 
+/*
+ * ports and endpoints defined as software_nodes should all follow a common
+ * naming scheme; use these macros to ensure commonality.
+ */
+#define SWNODE_GRAPH_PORT_NAME_FMT             "port@%u"
+#define SWNODE_GRAPH_ENDPOINT_NAME_FMT         "endpoint@%u"
+
 #define NR_FWNODE_REFERENCE_ARGS       8
 
 /**