coresight: Store pointers to connections rather than an array of them

This will allow the same connection object to be referenced via the
input connection list in a later commit rather than duplicating them.

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-8-james.clark@arm.com
This commit is contained in:
James Clark
2023-04-25 15:35:34 +01:00
committed by Suzuki K Poulose
parent 3d4ff657e4
commit 4e8fe7e5c3
5 changed files with 44 additions and 30 deletions

View File

@@ -104,14 +104,15 @@ union coresight_dev_subtype {
*
* @nr_inconns: Number of elements for the input connections.
* @nr_outconns: Number of elements for the output connections.
* @out_conns: Array of nr_outconns connections from this component.
* @out_conns: Array of nr_outconns pointers to connections from this
* component.
*/
struct coresight_platform_data {
int high_inport;
int high_outport;
int nr_inconns;
int nr_outconns;
struct coresight_connection *out_conns;
struct coresight_connection **out_conns;
};
/**