Skip to content

Commit d071b81

Browse files
krzkGeorgi Djakov
authored andcommitted
interconnect: sm8750: Add missing const to static qcom_icc_desc
The statically allocated 'struct qcom_icc_desc' is not modified by the driver and like all other instances should be const. Signed-off-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Georgi Djakov <[email protected]>
1 parent 5e0db3c commit d071b81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/interconnect/qcom/sm8750.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1485,7 +1485,7 @@ static struct qcom_icc_node * const cnoc_main_nodes[] = {
14851485
[SLAVE_PCIE_0] = &xs_pcie,
14861486
};
14871487

1488-
static struct qcom_icc_desc sm8750_cnoc_main = {
1488+
static const struct qcom_icc_desc sm8750_cnoc_main = {
14891489
.nodes = cnoc_main_nodes,
14901490
.num_nodes = ARRAY_SIZE(cnoc_main_nodes),
14911491
.bcms = cnoc_main_bcms,
@@ -1518,7 +1518,7 @@ static struct qcom_icc_node * const gem_noc_nodes[] = {
15181518
[SLAVE_MEM_NOC_PCIE_SNOC] = &qns_pcie,
15191519
};
15201520

1521-
static struct qcom_icc_desc sm8750_gem_noc = {
1521+
static const struct qcom_icc_desc sm8750_gem_noc = {
15221522
.nodes = gem_noc_nodes,
15231523
.num_nodes = ARRAY_SIZE(gem_noc_nodes),
15241524
.bcms = gem_noc_bcms,

0 commit comments

Comments
 (0)