interconnect: qcom: icc-rpmh: convert link_nodes to dynamic array

Declaring link_nodes as a double-pointer results in a syntax sugar in
the interconnect driver to typecast the array. Change the type of
link_nodes field to the array to remove the need for the extra typecast.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20251031-rework-icc-v3-1-0575304c9624@oss.qualcomm.com
Signed-off-by: Georgi Djakov <djakov@kernel.org>
This commit is contained in:
Dmitry Baryshkov
2025-11-02 23:15:30 +02:00
committed by Georgi Djakov
parent 3a86608788
commit fb6f1aaeb4
4 changed files with 261 additions and 261 deletions
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -98,7 +98,6 @@ struct qcom_icc_node {
const char *name;
u16 links[MAX_LINKS];
u16 id;
struct qcom_icc_node **link_nodes;
struct icc_node *node;
u16 num_links;
u16 channels;
@@ -108,6 +107,7 @@ struct qcom_icc_node {
struct qcom_icc_bcm *bcms[MAX_BCM_PER_NODE];
size_t num_bcms;
const struct qcom_icc_qosbox *qosbox;
struct qcom_icc_node *link_nodes[];
};
/**
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff