summaryrefslogtreecommitdiffstats
path: root/include/linux/coresight.h
diff options
context:
space:
mode:
authorJames Clark <james.clark@arm.com>2023-04-25 15:35:32 +0100
committerSuzuki K Poulose <suzuki.poulose@arm.com>2023-06-05 15:46:46 +0100
commitd49c9cf15f89cdd77f3ce3f0187fa1cfbdea28f5 (patch)
treed794e7276795cc9e638623a25a24f3547d5d83b9 /include/linux/coresight.h
parent81d0ea763d8a1089749a9b671a730cef6cc5c5d7 (diff)
downloadlinux-stable-d49c9cf15f89cdd77f3ce3f0187fa1cfbdea28f5.tar.gz
linux-stable-d49c9cf15f89cdd77f3ce3f0187fa1cfbdea28f5.tar.bz2
linux-stable-d49c9cf15f89cdd77f3ce3f0187fa1cfbdea28f5.zip
coresight: Rename connection members to make the direction explicit
When input connections are added they will use the same connection object as the output so parent and child could be misinterpreted. Making the direction unambiguous in the names should improve readability. Reviewed-by: Mike Leach <mike.leach@linaro.org> Signed-off-by: James Clark <james.clark@arm.com> Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com> Link: https://lore.kernel.org/r/20230425143542.2305069-6-james.clark@arm.com
Diffstat (limited to 'include/linux/coresight.h')
-rw-r--r--include/linux/coresight.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/include/linux/coresight.h b/include/linux/coresight.h
index daf392fcb67a..b6f444804bf3 100644
--- a/include/linux/coresight.h
+++ b/include/linux/coresight.h
@@ -164,18 +164,18 @@ struct coresight_desc {
/**
* struct coresight_connection - representation of a single connection
- * @outport: a connection's output port number.
- * @child_port: remote component's port number @output is connected to.
- * @chid_fwnode: remote component's fwnode handle.
- * @child_dev: a @coresight_device representation of the component
- connected to @outport.
+ * @src_port: a connection's output port number.
+ * @dest_port: destination's input port number @src_port is connected to.
+ * @dest_fwnode: destination component's fwnode handle.
+ * @dest_dev: a @coresight_device representation of the component
+ connected to @src_port. NULL until the device is created
* @link: Representation of the connection as a sysfs link.
*/
struct coresight_connection {
- int outport;
- int child_port;
- struct fwnode_handle *child_fwnode;
- struct coresight_device *child_dev;
+ int src_port;
+ int dest_port;
+ struct fwnode_handle *dest_fwnode;
+ struct coresight_device *dest_dev;
struct coresight_sysfs_link *link;
};