Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Dmitry Baryshkov and committed by
Georgi Djakov
fb6f1aae 3a866087

+261 -261
+102 -102
drivers/interconnect/qcom/glymur.c
··· 457 457 .channels = 1, 458 458 .buswidth = 4, 459 459 .num_links = 1, 460 - .link_nodes = (struct qcom_icc_node *[]) { &qup0_core_slave }, 460 + .link_nodes = { &qup0_core_slave }, 461 461 }; 462 462 463 463 static struct qcom_icc_node qup1_core_master = { ··· 465 465 .channels = 1, 466 466 .buswidth = 4, 467 467 .num_links = 1, 468 - .link_nodes = (struct qcom_icc_node *[]) { &qup1_core_slave }, 468 + .link_nodes = { &qup1_core_slave }, 469 469 }; 470 470 471 471 static struct qcom_icc_node qup2_core_master = { ··· 473 473 .channels = 1, 474 474 .buswidth = 4, 475 475 .num_links = 1, 476 - .link_nodes = (struct qcom_icc_node *[]) { &qup2_core_slave }, 476 + .link_nodes = { &qup2_core_slave }, 477 477 }; 478 478 479 479 static struct qcom_icc_node llcc_mc = { ··· 481 481 .channels = 12, 482 482 .buswidth = 4, 483 483 .num_links = 1, 484 - .link_nodes = (struct qcom_icc_node *[]) { &ebi }, 484 + .link_nodes = { &ebi }, 485 485 }; 486 486 487 487 static struct qcom_icc_node qsm_mnoc_cfg = { ··· 489 489 .channels = 1, 490 490 .buswidth = 4, 491 491 .num_links = 1, 492 - .link_nodes = (struct qcom_icc_node *[]) { &srvc_mnoc }, 492 + .link_nodes = { &srvc_mnoc }, 493 493 }; 494 494 495 495 static struct qcom_icc_node qsm_pcie_east_anoc_cfg = { ··· 497 497 .channels = 1, 498 498 .buswidth = 4, 499 499 .num_links = 1, 500 - .link_nodes = (struct qcom_icc_node *[]) { &srvc_pcie_east_aggre_noc }, 500 + .link_nodes = { &srvc_pcie_east_aggre_noc }, 501 501 }; 502 502 503 503 static struct qcom_icc_node qnm_hscnoc_pcie_east = { ··· 505 505 .channels = 1, 506 506 .buswidth = 32, 507 507 .num_links = 3, 508 - .link_nodes = (struct qcom_icc_node *[]) { &xs_pcie_0, &xs_pcie_1, 508 + .link_nodes = { &xs_pcie_0, &xs_pcie_1, 509 509 &xs_pcie_5 }, 510 510 }; 511 511 ··· 514 514 .channels = 1, 515 515 .buswidth = 4, 516 516 .num_links = 2, 517 - .link_nodes = (struct qcom_icc_node *[]) { &qhs_hscnoc_pcie_east_ms_mpu_cfg, 517 + .link_nodes = { &qhs_hscnoc_pcie_east_ms_mpu_cfg, 518 518 &srvc_pcie_east }, 519 519 }; 520 520 ··· 523 523 .channels = 1, 524 524 .buswidth = 4, 525 525 .num_links = 1, 526 - .link_nodes = (struct qcom_icc_node *[]) { &srvc_pcie_west_aggre_noc }, 526 + .link_nodes = { &srvc_pcie_west_aggre_noc }, 527 527 }; 528 528 529 529 static struct qcom_icc_node qnm_hscnoc_pcie_west = { ··· 531 531 .channels = 1, 532 532 .buswidth = 32, 533 533 .num_links = 5, 534 - .link_nodes = (struct qcom_icc_node *[]) { &xs_pcie_2, &xs_pcie_3a, 534 + .link_nodes = { &xs_pcie_2, &xs_pcie_3a, 535 535 &xs_pcie_3b, &xs_pcie_4, 536 536 &xs_pcie_6 }, 537 537 }; ··· 541 541 .channels = 1, 542 542 .buswidth = 4, 543 543 .num_links = 2, 544 - .link_nodes = (struct qcom_icc_node *[]) { &qhs_hscnoc_pcie_west_ms_mpu_cfg, 544 + .link_nodes = { &qhs_hscnoc_pcie_west_ms_mpu_cfg, 545 545 &srvc_pcie_west }, 546 546 }; 547 547 ··· 550 550 .channels = 1, 551 551 .buswidth = 4, 552 552 .num_links = 1, 553 - .link_nodes = (struct qcom_icc_node *[]) { &qsm_cnoc_pcie_east_slave_cfg }, 553 + .link_nodes = { &qsm_cnoc_pcie_east_slave_cfg }, 554 554 }; 555 555 556 556 static struct qcom_icc_node qss_cnoc_pcie_slave_west_cfg = { ··· 558 558 .channels = 1, 559 559 .buswidth = 4, 560 560 .num_links = 1, 561 - .link_nodes = (struct qcom_icc_node *[]) { &qsm_cnoc_pcie_west_slave_cfg }, 561 + .link_nodes = { &qsm_cnoc_pcie_west_slave_cfg }, 562 562 }; 563 563 564 564 static struct qcom_icc_node qss_mnoc_cfg = { ··· 566 566 .channels = 1, 567 567 .buswidth = 4, 568 568 .num_links = 1, 569 - .link_nodes = (struct qcom_icc_node *[]) { &qsm_mnoc_cfg }, 569 + .link_nodes = { &qsm_mnoc_cfg }, 570 570 }; 571 571 572 572 static struct qcom_icc_node qss_pcie_east_anoc_cfg = { ··· 574 574 .channels = 1, 575 575 .buswidth = 4, 576 576 .num_links = 1, 577 - .link_nodes = (struct qcom_icc_node *[]) { &qsm_pcie_east_anoc_cfg }, 577 + .link_nodes = { &qsm_pcie_east_anoc_cfg }, 578 578 }; 579 579 580 580 static struct qcom_icc_node qss_pcie_west_anoc_cfg = { ··· 582 582 .channels = 1, 583 583 .buswidth = 4, 584 584 .num_links = 1, 585 - .link_nodes = (struct qcom_icc_node *[]) { &qsm_pcie_west_anoc_cfg }, 585 + .link_nodes = { &qsm_pcie_west_anoc_cfg }, 586 586 }; 587 587 588 588 static struct qcom_icc_node qns_llcc = { ··· 590 590 .channels = 12, 591 591 .buswidth = 16, 592 592 .num_links = 1, 593 - .link_nodes = (struct qcom_icc_node *[]) { &llcc_mc }, 593 + .link_nodes = { &llcc_mc }, 594 594 }; 595 595 596 596 static struct qcom_icc_node qns_pcie_east = { ··· 598 598 .channels = 1, 599 599 .buswidth = 32, 600 600 .num_links = 1, 601 - .link_nodes = (struct qcom_icc_node *[]) { &qnm_hscnoc_pcie_east }, 601 + .link_nodes = { &qnm_hscnoc_pcie_east }, 602 602 }; 603 603 604 604 static struct qcom_icc_node qns_pcie_west = { ··· 606 606 .channels = 1, 607 607 .buswidth = 32, 608 608 .num_links = 1, 609 - .link_nodes = (struct qcom_icc_node *[]) { &qnm_hscnoc_pcie_west }, 609 + .link_nodes = { &qnm_hscnoc_pcie_west }, 610 610 }; 611 611 612 612 static struct qcom_icc_node qsm_cfg = { ··· 614 614 .channels = 1, 615 615 .buswidth = 4, 616 616 .num_links = 51, 617 - .link_nodes = (struct qcom_icc_node *[]) { &qhs_ahb2phy0, &qhs_ahb2phy1, 617 + .link_nodes = { &qhs_ahb2phy0, &qhs_ahb2phy1, 618 618 &qhs_ahb2phy2, &qhs_ahb2phy3, 619 619 &qhs_av1_enc_cfg, &qhs_camera_cfg, 620 620 &qhs_clk_ctl, &qhs_crypto0_cfg, ··· 654 654 .prio_fwd_disable = 0, 655 655 }, 656 656 .num_links = 1, 657 - .link_nodes = (struct qcom_icc_node *[]) { &qns_llcc }, 657 + .link_nodes = { &qns_llcc }, 658 658 }; 659 659 660 660 static struct qcom_icc_node qss_cfg = { ··· 662 662 .channels = 1, 663 663 .buswidth = 4, 664 664 .num_links = 1, 665 - .link_nodes = (struct qcom_icc_node *[]) { &qsm_cfg }, 665 + .link_nodes = { &qsm_cfg }, 666 666 }; 667 667 668 668 static struct qcom_icc_node qnm_hscnoc_cnoc = { ··· 670 670 .channels = 1, 671 671 .buswidth = 16, 672 672 .num_links = 8, 673 - .link_nodes = (struct qcom_icc_node *[]) { &qhs_aoss, &qhs_ipc_router, 673 + .link_nodes = { &qhs_aoss, &qhs_ipc_router, 674 674 &qhs_soccp, &qhs_tme_cfg, 675 675 &qns_apss, &qss_cfg, 676 676 &qxs_boot_imem, &qxs_imem }, ··· 681 681 .channels = 1, 682 682 .buswidth = 16, 683 683 .num_links = 1, 684 - .link_nodes = (struct qcom_icc_node *[]) { &qnm_hscnoc_cnoc }, 684 + .link_nodes = { &qnm_hscnoc_cnoc }, 685 685 }; 686 686 687 687 static struct qcom_icc_node alm_gpu_tcu = { ··· 696 696 .prio_fwd_disable = 1, 697 697 }, 698 698 .num_links = 2, 699 - .link_nodes = (struct qcom_icc_node *[]) { &qns_hscnoc_cnoc, &qns_llcc }, 699 + .link_nodes = { &qns_hscnoc_cnoc, &qns_llcc }, 700 700 }; 701 701 702 702 static struct qcom_icc_node alm_pcie_qtc = { ··· 711 711 .prio_fwd_disable = 1, 712 712 }, 713 713 .num_links = 2, 714 - .link_nodes = (struct qcom_icc_node *[]) { &qns_hscnoc_cnoc, &qns_llcc }, 714 + .link_nodes = { &qns_hscnoc_cnoc, &qns_llcc }, 715 715 }; 716 716 717 717 static struct qcom_icc_node alm_sys_tcu = { ··· 726 726 .prio_fwd_disable = 1, 727 727 }, 728 728 .num_links = 2, 729 - .link_nodes = (struct qcom_icc_node *[]) { &qns_hscnoc_cnoc, &qns_llcc }, 729 + .link_nodes = { &qns_hscnoc_cnoc, &qns_llcc }, 730 730 }; 731 731 732 732 static struct qcom_icc_node chm_apps = { ··· 734 734 .channels = 6, 735 735 .buswidth = 32, 736 736 .num_links = 4, 737 - .link_nodes = (struct qcom_icc_node *[]) { &qns_hscnoc_cnoc, &qns_llcc, 737 + .link_nodes = { &qns_hscnoc_cnoc, &qns_llcc, 738 738 &qns_pcie_east, &qns_pcie_west }, 739 739 }; 740 740 ··· 750 750 .prio_fwd_disable = 1, 751 751 }, 752 752 .num_links = 4, 753 - .link_nodes = (struct qcom_icc_node *[]) { &qns_hscnoc_cnoc, &qns_llcc, 753 + .link_nodes = { &qns_hscnoc_cnoc, &qns_llcc, 754 754 &qns_pcie_east, &qns_pcie_west }, 755 755 }; 756 756 ··· 766 766 .prio_fwd_disable = 1, 767 767 }, 768 768 .num_links = 4, 769 - .link_nodes = (struct qcom_icc_node *[]) { &qns_hscnoc_cnoc, &qns_llcc, 769 + .link_nodes = { &qns_hscnoc_cnoc, &qns_llcc, 770 770 &qns_pcie_east, &qns_pcie_west }, 771 771 }; 772 772 ··· 782 782 .prio_fwd_disable = 0, 783 783 }, 784 784 .num_links = 4, 785 - .link_nodes = (struct qcom_icc_node *[]) { &qns_hscnoc_cnoc, &qns_llcc, 785 + .link_nodes = { &qns_hscnoc_cnoc, &qns_llcc, 786 786 &qns_pcie_east, &qns_pcie_west }, 787 787 }; 788 788 ··· 798 798 .prio_fwd_disable = 0, 799 799 }, 800 800 .num_links = 4, 801 - .link_nodes = (struct qcom_icc_node *[]) { &qns_hscnoc_cnoc, &qns_llcc, 801 + .link_nodes = { &qns_hscnoc_cnoc, &qns_llcc, 802 802 &qns_pcie_east, &qns_pcie_west }, 803 803 }; 804 804 ··· 814 814 .prio_fwd_disable = 0, 815 815 }, 816 816 .num_links = 4, 817 - .link_nodes = (struct qcom_icc_node *[]) { &qns_hscnoc_cnoc, &qns_llcc, 817 + .link_nodes = { &qns_hscnoc_cnoc, &qns_llcc, 818 818 &qns_pcie_east, &qns_pcie_west }, 819 819 }; 820 820 ··· 830 830 .prio_fwd_disable = 1, 831 831 }, 832 832 .num_links = 4, 833 - .link_nodes = (struct qcom_icc_node *[]) { &qns_hscnoc_cnoc, &qns_llcc, 833 + .link_nodes = { &qns_hscnoc_cnoc, &qns_llcc, 834 834 &qns_pcie_east, &qns_pcie_west }, 835 835 }; 836 836 ··· 846 846 .prio_fwd_disable = 1, 847 847 }, 848 848 .num_links = 2, 849 - .link_nodes = (struct qcom_icc_node *[]) { &qns_hscnoc_cnoc, &qns_llcc }, 849 + .link_nodes = { &qns_hscnoc_cnoc, &qns_llcc }, 850 850 }; 851 851 852 852 static struct qcom_icc_node qnm_pcie_west = { ··· 861 861 .prio_fwd_disable = 1, 862 862 }, 863 863 .num_links = 2, 864 - .link_nodes = (struct qcom_icc_node *[]) { &qns_hscnoc_cnoc, &qns_llcc }, 864 + .link_nodes = { &qns_hscnoc_cnoc, &qns_llcc }, 865 865 }; 866 866 867 867 static struct qcom_icc_node qnm_snoc_sf = { ··· 876 876 .prio_fwd_disable = 1, 877 877 }, 878 878 .num_links = 4, 879 - .link_nodes = (struct qcom_icc_node *[]) { &qns_hscnoc_cnoc, &qns_llcc, 879 + .link_nodes = { &qns_hscnoc_cnoc, &qns_llcc, 880 880 &qns_pcie_east, &qns_pcie_west }, 881 881 }; 882 882 ··· 885 885 .channels = 1, 886 886 .buswidth = 8, 887 887 .num_links = 4, 888 - .link_nodes = (struct qcom_icc_node *[]) { &qns_hscnoc_cnoc, &qns_llcc, 888 + .link_nodes = { &qns_hscnoc_cnoc, &qns_llcc, 889 889 &qns_pcie_east, &qns_pcie_west }, 890 890 }; 891 891 ··· 894 894 .channels = 1, 895 895 .buswidth = 32, 896 896 .num_links = 1, 897 - .link_nodes = (struct qcom_icc_node *[]) { &qnm_aggre_noc_east }, 897 + .link_nodes = { &qnm_aggre_noc_east }, 898 898 }; 899 899 900 900 static struct qcom_icc_node qns_lpass_ag_noc_gemnoc = { ··· 902 902 .channels = 1, 903 903 .buswidth = 16, 904 904 .num_links = 1, 905 - .link_nodes = (struct qcom_icc_node *[]) { &qnm_lpass }, 905 + .link_nodes = { &qnm_lpass }, 906 906 }; 907 907 908 908 static struct qcom_icc_node qns_mem_noc_hf = { ··· 910 910 .channels = 2, 911 911 .buswidth = 32, 912 912 .num_links = 1, 913 - .link_nodes = (struct qcom_icc_node *[]) { &qnm_mnoc_hf }, 913 + .link_nodes = { &qnm_mnoc_hf }, 914 914 }; 915 915 916 916 static struct qcom_icc_node qns_mem_noc_sf = { ··· 918 918 .channels = 2, 919 919 .buswidth = 32, 920 920 .num_links = 1, 921 - .link_nodes = (struct qcom_icc_node *[]) { &qnm_mnoc_sf }, 921 + .link_nodes = { &qnm_mnoc_sf }, 922 922 }; 923 923 924 924 static struct qcom_icc_node qns_nsp_hscnoc = { ··· 926 926 .channels = 4, 927 927 .buswidth = 32, 928 928 .num_links = 1, 929 - .link_nodes = (struct qcom_icc_node *[]) { &qnm_nsp_noc }, 929 + .link_nodes = { &qnm_nsp_noc }, 930 930 }; 931 931 932 932 static struct qcom_icc_node qns_pcie_east_mem_noc = { ··· 934 934 .channels = 1, 935 935 .buswidth = 32, 936 936 .num_links = 1, 937 - .link_nodes = (struct qcom_icc_node *[]) { &qnm_pcie_east }, 937 + .link_nodes = { &qnm_pcie_east }, 938 938 }; 939 939 940 940 static struct qcom_icc_node qns_pcie_west_mem_noc = { ··· 942 942 .channels = 1, 943 943 .buswidth = 64, 944 944 .num_links = 1, 945 - .link_nodes = (struct qcom_icc_node *[]) { &qnm_pcie_west }, 945 + .link_nodes = { &qnm_pcie_west }, 946 946 }; 947 947 948 948 static struct qcom_icc_node qns_gemnoc_sf = { ··· 950 950 .channels = 1, 951 951 .buswidth = 64, 952 952 .num_links = 1, 953 - .link_nodes = (struct qcom_icc_node *[]) { &qnm_snoc_sf }, 953 + .link_nodes = { &qnm_snoc_sf }, 954 954 }; 955 955 956 956 static struct qcom_icc_node xm_usb3_0 = { ··· 965 965 .prio_fwd_disable = 1, 966 966 }, 967 967 .num_links = 1, 968 - .link_nodes = (struct qcom_icc_node *[]) { &qns_a4noc_hscnoc }, 968 + .link_nodes = { &qns_a4noc_hscnoc }, 969 969 }; 970 970 971 971 static struct qcom_icc_node xm_usb3_1 = { ··· 980 980 .prio_fwd_disable = 1, 981 981 }, 982 982 .num_links = 1, 983 - .link_nodes = (struct qcom_icc_node *[]) { &qns_a4noc_hscnoc }, 983 + .link_nodes = { &qns_a4noc_hscnoc }, 984 984 }; 985 985 986 986 static struct qcom_icc_node xm_usb4_0 = { ··· 995 995 .prio_fwd_disable = 1, 996 996 }, 997 997 .num_links = 1, 998 - .link_nodes = (struct qcom_icc_node *[]) { &qns_a4noc_hscnoc }, 998 + .link_nodes = { &qns_a4noc_hscnoc }, 999 999 }; 1000 1000 1001 1001 static struct qcom_icc_node xm_usb4_1 = { ··· 1010 1010 .prio_fwd_disable = 1, 1011 1011 }, 1012 1012 .num_links = 1, 1013 - .link_nodes = (struct qcom_icc_node *[]) { &qns_a4noc_hscnoc }, 1013 + .link_nodes = { &qns_a4noc_hscnoc }, 1014 1014 }; 1015 1015 1016 1016 static struct qcom_icc_node qnm_lpiaon_noc = { ··· 1018 1018 .channels = 1, 1019 1019 .buswidth = 16, 1020 1020 .num_links = 1, 1021 - .link_nodes = (struct qcom_icc_node *[]) { &qns_lpass_ag_noc_gemnoc }, 1021 + .link_nodes = { &qns_lpass_ag_noc_gemnoc }, 1022 1022 }; 1023 1023 1024 1024 static struct qcom_icc_node qnm_av1_enc = { ··· 1033 1033 .prio_fwd_disable = 1, 1034 1034 }, 1035 1035 .num_links = 1, 1036 - .link_nodes = (struct qcom_icc_node *[]) { &qns_mem_noc_sf }, 1036 + .link_nodes = { &qns_mem_noc_sf }, 1037 1037 }; 1038 1038 1039 1039 static struct qcom_icc_node qnm_camnoc_hf = { ··· 1048 1048 .prio_fwd_disable = 0, 1049 1049 }, 1050 1050 .num_links = 1, 1051 - .link_nodes = (struct qcom_icc_node *[]) { &qns_mem_noc_hf }, 1051 + .link_nodes = { &qns_mem_noc_hf }, 1052 1052 }; 1053 1053 1054 1054 static struct qcom_icc_node qnm_camnoc_icp = { ··· 1063 1063 .prio_fwd_disable = 1, 1064 1064 }, 1065 1065 .num_links = 1, 1066 - .link_nodes = (struct qcom_icc_node *[]) { &qns_mem_noc_sf }, 1066 + .link_nodes = { &qns_mem_noc_sf }, 1067 1067 }; 1068 1068 1069 1069 static struct qcom_icc_node qnm_camnoc_sf = { ··· 1078 1078 .prio_fwd_disable = 0, 1079 1079 }, 1080 1080 .num_links = 1, 1081 - .link_nodes = (struct qcom_icc_node *[]) { &qns_mem_noc_sf }, 1081 + .link_nodes = { &qns_mem_noc_sf }, 1082 1082 }; 1083 1083 1084 1084 static struct qcom_icc_node qnm_eva = { ··· 1093 1093 .prio_fwd_disable = 0, 1094 1094 }, 1095 1095 .num_links = 1, 1096 - .link_nodes = (struct qcom_icc_node *[]) { &qns_mem_noc_sf }, 1096 + .link_nodes = { &qns_mem_noc_sf }, 1097 1097 }; 1098 1098 1099 1099 static struct qcom_icc_node qnm_mdp = { ··· 1108 1108 .prio_fwd_disable = 0, 1109 1109 }, 1110 1110 .num_links = 1, 1111 - .link_nodes = (struct qcom_icc_node *[]) { &qns_mem_noc_hf }, 1111 + .link_nodes = { &qns_mem_noc_hf }, 1112 1112 }; 1113 1113 1114 1114 static struct qcom_icc_node qnm_vapss_hcp = { ··· 1116 1116 .channels = 1, 1117 1117 .buswidth = 32, 1118 1118 .num_links = 1, 1119 - .link_nodes = (struct qcom_icc_node *[]) { &qns_mem_noc_sf }, 1119 + .link_nodes = { &qns_mem_noc_sf }, 1120 1120 }; 1121 1121 1122 1122 static struct qcom_icc_node qnm_video = { ··· 1131 1131 .prio_fwd_disable = 0, 1132 1132 }, 1133 1133 .num_links = 1, 1134 - .link_nodes = (struct qcom_icc_node *[]) { &qns_mem_noc_sf }, 1134 + .link_nodes = { &qns_mem_noc_sf }, 1135 1135 }; 1136 1136 1137 1137 static struct qcom_icc_node qnm_video_cv_cpu = { ··· 1146 1146 .prio_fwd_disable = 1, 1147 1147 }, 1148 1148 .num_links = 1, 1149 - .link_nodes = (struct qcom_icc_node *[]) { &qns_mem_noc_sf }, 1149 + .link_nodes = { &qns_mem_noc_sf }, 1150 1150 }; 1151 1151 1152 1152 static struct qcom_icc_node qnm_video_v_cpu = { ··· 1161 1161 .prio_fwd_disable = 1, 1162 1162 }, 1163 1163 .num_links = 1, 1164 - .link_nodes = (struct qcom_icc_node *[]) { &qns_mem_noc_sf }, 1164 + .link_nodes = { &qns_mem_noc_sf }, 1165 1165 }; 1166 1166 1167 1167 static struct qcom_icc_node qnm_nsp = { ··· 1169 1169 .channels = 4, 1170 1170 .buswidth = 32, 1171 1171 .num_links = 1, 1172 - .link_nodes = (struct qcom_icc_node *[]) { &qns_nsp_hscnoc }, 1172 + .link_nodes = { &qns_nsp_hscnoc }, 1173 1173 }; 1174 1174 1175 1175 static struct qcom_icc_node xm_pcie_0 = { ··· 1184 1184 .prio_fwd_disable = 0, 1185 1185 }, 1186 1186 .num_links = 1, 1187 - .link_nodes = (struct qcom_icc_node *[]) { &qns_pcie_east_mem_noc }, 1187 + .link_nodes = { &qns_pcie_east_mem_noc }, 1188 1188 }; 1189 1189 1190 1190 static struct qcom_icc_node xm_pcie_1 = { ··· 1199 1199 .prio_fwd_disable = 0, 1200 1200 }, 1201 1201 .num_links = 1, 1202 - .link_nodes = (struct qcom_icc_node *[]) { &qns_pcie_east_mem_noc }, 1202 + .link_nodes = { &qns_pcie_east_mem_noc }, 1203 1203 }; 1204 1204 1205 1205 static struct qcom_icc_node xm_pcie_5 = { ··· 1214 1214 .prio_fwd_disable = 0, 1215 1215 }, 1216 1216 .num_links = 1, 1217 - .link_nodes = (struct qcom_icc_node *[]) { &qns_pcie_east_mem_noc }, 1217 + .link_nodes = { &qns_pcie_east_mem_noc }, 1218 1218 }; 1219 1219 1220 1220 static struct qcom_icc_node xm_pcie_2 = { ··· 1229 1229 .prio_fwd_disable = 0, 1230 1230 }, 1231 1231 .num_links = 1, 1232 - .link_nodes = (struct qcom_icc_node *[]) { &qns_pcie_west_mem_noc }, 1232 + .link_nodes = { &qns_pcie_west_mem_noc }, 1233 1233 }; 1234 1234 1235 1235 static struct qcom_icc_node xm_pcie_3a = { ··· 1244 1244 .prio_fwd_disable = 0, 1245 1245 }, 1246 1246 .num_links = 1, 1247 - .link_nodes = (struct qcom_icc_node *[]) { &qns_pcie_west_mem_noc }, 1247 + .link_nodes = { &qns_pcie_west_mem_noc }, 1248 1248 }; 1249 1249 1250 1250 static struct qcom_icc_node xm_pcie_3b = { ··· 1259 1259 .prio_fwd_disable = 0, 1260 1260 }, 1261 1261 .num_links = 1, 1262 - .link_nodes = (struct qcom_icc_node *[]) { &qns_pcie_west_mem_noc }, 1262 + .link_nodes = { &qns_pcie_west_mem_noc }, 1263 1263 }; 1264 1264 1265 1265 static struct qcom_icc_node xm_pcie_4 = { ··· 1274 1274 .prio_fwd_disable = 0, 1275 1275 }, 1276 1276 .num_links = 1, 1277 - .link_nodes = (struct qcom_icc_node *[]) { &qns_pcie_west_mem_noc }, 1277 + .link_nodes = { &qns_pcie_west_mem_noc }, 1278 1278 }; 1279 1279 1280 1280 static struct qcom_icc_node xm_pcie_6 = { ··· 1289 1289 .prio_fwd_disable = 0, 1290 1290 }, 1291 1291 .num_links = 1, 1292 - .link_nodes = (struct qcom_icc_node *[]) { &qns_pcie_west_mem_noc }, 1292 + .link_nodes = { &qns_pcie_west_mem_noc }, 1293 1293 }; 1294 1294 1295 1295 static struct qcom_icc_node qnm_aggre1_noc = { ··· 1297 1297 .channels = 1, 1298 1298 .buswidth = 16, 1299 1299 .num_links = 1, 1300 - .link_nodes = (struct qcom_icc_node *[]) { &qns_gemnoc_sf }, 1300 + .link_nodes = { &qns_gemnoc_sf }, 1301 1301 }; 1302 1302 1303 1303 static struct qcom_icc_node qnm_aggre2_noc = { ··· 1305 1305 .channels = 1, 1306 1306 .buswidth = 16, 1307 1307 .num_links = 1, 1308 - .link_nodes = (struct qcom_icc_node *[]) { &qns_gemnoc_sf }, 1308 + .link_nodes = { &qns_gemnoc_sf }, 1309 1309 }; 1310 1310 1311 1311 static struct qcom_icc_node qnm_aggre3_noc = { ··· 1313 1313 .channels = 1, 1314 1314 .buswidth = 32, 1315 1315 .num_links = 1, 1316 - .link_nodes = (struct qcom_icc_node *[]) { &qns_gemnoc_sf }, 1316 + .link_nodes = { &qns_gemnoc_sf }, 1317 1317 }; 1318 1318 1319 1319 static struct qcom_icc_node qnm_nsi_noc = { ··· 1328 1328 .prio_fwd_disable = 1, 1329 1329 }, 1330 1330 .num_links = 1, 1331 - .link_nodes = (struct qcom_icc_node *[]) { &qns_gemnoc_sf }, 1331 + .link_nodes = { &qns_gemnoc_sf }, 1332 1332 }; 1333 1333 1334 1334 static struct qcom_icc_node qnm_oobmss = { ··· 1343 1343 .prio_fwd_disable = 1, 1344 1344 }, 1345 1345 .num_links = 1, 1346 - .link_nodes = (struct qcom_icc_node *[]) { &qns_gemnoc_sf }, 1346 + .link_nodes = { &qns_gemnoc_sf }, 1347 1347 }; 1348 1348 1349 1349 static struct qcom_icc_node qns_a1noc_snoc = { ··· 1351 1351 .channels = 1, 1352 1352 .buswidth = 16, 1353 1353 .num_links = 1, 1354 - .link_nodes = (struct qcom_icc_node *[]) { &qnm_aggre1_noc }, 1354 + .link_nodes = { &qnm_aggre1_noc }, 1355 1355 }; 1356 1356 1357 1357 static struct qcom_icc_node qns_a2noc_snoc = { ··· 1359 1359 .channels = 1, 1360 1360 .buswidth = 16, 1361 1361 .num_links = 1, 1362 - .link_nodes = (struct qcom_icc_node *[]) { &qnm_aggre2_noc }, 1362 + .link_nodes = { &qnm_aggre2_noc }, 1363 1363 }; 1364 1364 1365 1365 static struct qcom_icc_node qns_a3noc_snoc = { ··· 1367 1367 .channels = 1, 1368 1368 .buswidth = 32, 1369 1369 .num_links = 1, 1370 - .link_nodes = (struct qcom_icc_node *[]) { &qnm_aggre3_noc }, 1370 + .link_nodes = { &qnm_aggre3_noc }, 1371 1371 }; 1372 1372 1373 1373 static struct qcom_icc_node qns_lpass_aggnoc = { ··· 1375 1375 .channels = 1, 1376 1376 .buswidth = 16, 1377 1377 .num_links = 1, 1378 - .link_nodes = (struct qcom_icc_node *[]) { &qnm_lpiaon_noc }, 1378 + .link_nodes = { &qnm_lpiaon_noc }, 1379 1379 }; 1380 1380 1381 1381 static struct qcom_icc_node qns_system_noc = { ··· 1383 1383 .channels = 1, 1384 1384 .buswidth = 8, 1385 1385 .num_links = 1, 1386 - .link_nodes = (struct qcom_icc_node *[]) { &qnm_nsi_noc }, 1386 + .link_nodes = { &qnm_nsi_noc }, 1387 1387 }; 1388 1388 1389 1389 static struct qcom_icc_node qns_oobmss_snoc = { ··· 1391 1391 .channels = 1, 1392 1392 .buswidth = 16, 1393 1393 .num_links = 1, 1394 - .link_nodes = (struct qcom_icc_node *[]) { &qnm_oobmss }, 1394 + .link_nodes = { &qnm_oobmss }, 1395 1395 }; 1396 1396 1397 1397 static struct qcom_icc_node qxm_crypto = { ··· 1406 1406 .prio_fwd_disable = 1, 1407 1407 }, 1408 1408 .num_links = 1, 1409 - .link_nodes = (struct qcom_icc_node *[]) { &qns_a1noc_snoc }, 1409 + .link_nodes = { &qns_a1noc_snoc }, 1410 1410 }; 1411 1411 1412 1412 static struct qcom_icc_node qxm_soccp = { ··· 1421 1421 .prio_fwd_disable = 1, 1422 1422 }, 1423 1423 .num_links = 1, 1424 - .link_nodes = (struct qcom_icc_node *[]) { &qns_a1noc_snoc }, 1424 + .link_nodes = { &qns_a1noc_snoc }, 1425 1425 }; 1426 1426 1427 1427 static struct qcom_icc_node xm_qdss_etr_0 = { ··· 1436 1436 .prio_fwd_disable = 1, 1437 1437 }, 1438 1438 .num_links = 1, 1439 - .link_nodes = (struct qcom_icc_node *[]) { &qns_a1noc_snoc }, 1439 + .link_nodes = { &qns_a1noc_snoc }, 1440 1440 }; 1441 1441 1442 1442 static struct qcom_icc_node xm_qdss_etr_1 = { ··· 1451 1451 .prio_fwd_disable = 1, 1452 1452 }, 1453 1453 .num_links = 1, 1454 - .link_nodes = (struct qcom_icc_node *[]) { &qns_a1noc_snoc }, 1454 + .link_nodes = { &qns_a1noc_snoc }, 1455 1455 }; 1456 1456 1457 1457 static struct qcom_icc_node xm_ufs_mem = { ··· 1466 1466 .prio_fwd_disable = 1, 1467 1467 }, 1468 1468 .num_links = 1, 1469 - .link_nodes = (struct qcom_icc_node *[]) { &qns_a2noc_snoc }, 1469 + .link_nodes = { &qns_a2noc_snoc }, 1470 1470 }; 1471 1471 1472 1472 static struct qcom_icc_node xm_usb3_2 = { ··· 1481 1481 .prio_fwd_disable = 1, 1482 1482 }, 1483 1483 .num_links = 1, 1484 - .link_nodes = (struct qcom_icc_node *[]) { &qns_a2noc_snoc }, 1484 + .link_nodes = { &qns_a2noc_snoc }, 1485 1485 }; 1486 1486 1487 1487 static struct qcom_icc_node xm_usb4_2 = { ··· 1496 1496 .prio_fwd_disable = 1, 1497 1497 }, 1498 1498 .num_links = 1, 1499 - .link_nodes = (struct qcom_icc_node *[]) { &qns_a2noc_snoc }, 1499 + .link_nodes = { &qns_a2noc_snoc }, 1500 1500 }; 1501 1501 1502 1502 static struct qcom_icc_node qhm_qspi = { ··· 1511 1511 .prio_fwd_disable = 1, 1512 1512 }, 1513 1513 .num_links = 1, 1514 - .link_nodes = (struct qcom_icc_node *[]) { &qns_a3noc_snoc }, 1514 + .link_nodes = { &qns_a3noc_snoc }, 1515 1515 }; 1516 1516 1517 1517 static struct qcom_icc_node qhm_qup0 = { ··· 1526 1526 .prio_fwd_disable = 1, 1527 1527 }, 1528 1528 .num_links = 1, 1529 - .link_nodes = (struct qcom_icc_node *[]) { &qns_a3noc_snoc }, 1529 + .link_nodes = { &qns_a3noc_snoc }, 1530 1530 }; 1531 1531 1532 1532 static struct qcom_icc_node qhm_qup1 = { ··· 1541 1541 .prio_fwd_disable = 1, 1542 1542 }, 1543 1543 .num_links = 1, 1544 - .link_nodes = (struct qcom_icc_node *[]) { &qns_a3noc_snoc }, 1544 + .link_nodes = { &qns_a3noc_snoc }, 1545 1545 }; 1546 1546 1547 1547 static struct qcom_icc_node qhm_qup2 = { ··· 1556 1556 .prio_fwd_disable = 1, 1557 1557 }, 1558 1558 .num_links = 1, 1559 - .link_nodes = (struct qcom_icc_node *[]) { &qns_a3noc_snoc }, 1559 + .link_nodes = { &qns_a3noc_snoc }, 1560 1560 }; 1561 1561 1562 1562 static struct qcom_icc_node qxm_sp = { ··· 1564 1564 .channels = 1, 1565 1565 .buswidth = 8, 1566 1566 .num_links = 1, 1567 - .link_nodes = (struct qcom_icc_node *[]) { &qns_a3noc_snoc }, 1567 + .link_nodes = { &qns_a3noc_snoc }, 1568 1568 }; 1569 1569 1570 1570 static struct qcom_icc_node xm_sdc2 = { ··· 1579 1579 .prio_fwd_disable = 1, 1580 1580 }, 1581 1581 .num_links = 1, 1582 - .link_nodes = (struct qcom_icc_node *[]) { &qns_a3noc_snoc }, 1582 + .link_nodes = { &qns_a3noc_snoc }, 1583 1583 }; 1584 1584 1585 1585 static struct qcom_icc_node xm_sdc4 = { ··· 1594 1594 .prio_fwd_disable = 1, 1595 1595 }, 1596 1596 .num_links = 1, 1597 - .link_nodes = (struct qcom_icc_node *[]) { &qns_a3noc_snoc }, 1597 + .link_nodes = { &qns_a3noc_snoc }, 1598 1598 }; 1599 1599 1600 1600 static struct qcom_icc_node xm_usb2_0 = { ··· 1609 1609 .prio_fwd_disable = 1, 1610 1610 }, 1611 1611 .num_links = 1, 1612 - .link_nodes = (struct qcom_icc_node *[]) { &qns_a3noc_snoc }, 1612 + .link_nodes = { &qns_a3noc_snoc }, 1613 1613 }; 1614 1614 1615 1615 static struct qcom_icc_node xm_usb3_mp = { ··· 1624 1624 .prio_fwd_disable = 1, 1625 1625 }, 1626 1626 .num_links = 1, 1627 - .link_nodes = (struct qcom_icc_node *[]) { &qns_a3noc_snoc }, 1627 + .link_nodes = { &qns_a3noc_snoc }, 1628 1628 }; 1629 1629 1630 1630 static struct qcom_icc_node qnm_lpass_lpinoc = { ··· 1632 1632 .channels = 1, 1633 1633 .buswidth = 16, 1634 1634 .num_links = 1, 1635 - .link_nodes = (struct qcom_icc_node *[]) { &qns_lpass_aggnoc }, 1635 + .link_nodes = { &qns_lpass_aggnoc }, 1636 1636 }; 1637 1637 1638 1638 static struct qcom_icc_node xm_cpucp = { ··· 1640 1640 .channels = 1, 1641 1641 .buswidth = 8, 1642 1642 .num_links = 2, 1643 - .link_nodes = (struct qcom_icc_node *[]) { &qns_system_noc, &srvc_nsinoc }, 1643 + .link_nodes = { &qns_system_noc, &srvc_nsinoc }, 1644 1644 }; 1645 1645 1646 1646 static struct qcom_icc_node xm_mem_sp = { ··· 1648 1648 .channels = 1, 1649 1649 .buswidth = 8, 1650 1650 .num_links = 1, 1651 - .link_nodes = (struct qcom_icc_node *[]) { &qns_oobmss_snoc }, 1651 + .link_nodes = { &qns_oobmss_snoc }, 1652 1652 }; 1653 1653 1654 1654 static struct qcom_icc_node qns_lpi_aon_noc = { ··· 1656 1656 .channels = 1, 1657 1657 .buswidth = 16, 1658 1658 .num_links = 1, 1659 - .link_nodes = (struct qcom_icc_node *[]) { &qnm_lpass_lpinoc }, 1659 + .link_nodes = { &qnm_lpass_lpinoc }, 1660 1660 }; 1661 1661 1662 1662 static struct qcom_icc_node qnm_lpinoc_dsp_qns4m = { ··· 1664 1664 .channels = 1, 1665 1665 .buswidth = 16, 1666 1666 .num_links = 1, 1667 - .link_nodes = (struct qcom_icc_node *[]) { &qns_lpi_aon_noc }, 1667 + .link_nodes = { &qns_lpi_aon_noc }, 1668 1668 }; 1669 1669 1670 1670 static struct qcom_icc_bcm bcm_acv = {
+1 -1
drivers/interconnect/qcom/icc-rpmh.h
··· 98 98 const char *name; 99 99 u16 links[MAX_LINKS]; 100 100 u16 id; 101 - struct qcom_icc_node **link_nodes; 102 101 struct icc_node *node; 103 102 u16 num_links; 104 103 u16 channels; ··· 107 108 struct qcom_icc_bcm *bcms[MAX_BCM_PER_NODE]; 108 109 size_t num_bcms; 109 110 const struct qcom_icc_qosbox *qosbox; 111 + struct qcom_icc_node *link_nodes[]; 110 112 }; 111 113 112 114 /**
+65 -65
drivers/interconnect/qcom/milos.c
··· 151 151 .buswidth = 4, 152 152 .qosbox = &qhm_qup1_qos, 153 153 .num_links = 1, 154 - .link_nodes = (struct qcom_icc_node *[]) { &qns_a1noc_snoc }, 154 + .link_nodes = { &qns_a1noc_snoc }, 155 155 }; 156 156 157 157 static struct qcom_icc_qosbox xm_ufs_mem_qos = { ··· 168 168 .buswidth = 8, 169 169 .qosbox = &xm_ufs_mem_qos, 170 170 .num_links = 1, 171 - .link_nodes = (struct qcom_icc_node *[]) { &qns_a1noc_snoc }, 171 + .link_nodes = { &qns_a1noc_snoc }, 172 172 }; 173 173 174 174 static struct qcom_icc_qosbox xm_usb3_0_qos = { ··· 185 185 .buswidth = 8, 186 186 .qosbox = &xm_usb3_0_qos, 187 187 .num_links = 1, 188 - .link_nodes = (struct qcom_icc_node *[]) { &qns_a1noc_snoc }, 188 + .link_nodes = { &qns_a1noc_snoc }, 189 189 }; 190 190 191 191 static struct qcom_icc_qosbox qhm_qdss_bam_qos = { ··· 202 202 .buswidth = 4, 203 203 .qosbox = &qhm_qdss_bam_qos, 204 204 .num_links = 1, 205 - .link_nodes = (struct qcom_icc_node *[]) { &qns_a2noc_snoc }, 205 + .link_nodes = { &qns_a2noc_snoc }, 206 206 }; 207 207 208 208 static struct qcom_icc_qosbox qhm_qspi_qos = { ··· 219 219 .buswidth = 4, 220 220 .qosbox = &qhm_qspi_qos, 221 221 .num_links = 1, 222 - .link_nodes = (struct qcom_icc_node *[]) { &qns_a2noc_snoc }, 222 + .link_nodes = { &qns_a2noc_snoc }, 223 223 }; 224 224 225 225 static struct qcom_icc_qosbox qhm_qup0_qos = { ··· 236 236 .buswidth = 4, 237 237 .qosbox = &qhm_qup0_qos, 238 238 .num_links = 1, 239 - .link_nodes = (struct qcom_icc_node *[]) { &qns_a2noc_snoc }, 239 + .link_nodes = { &qns_a2noc_snoc }, 240 240 }; 241 241 242 242 static struct qcom_icc_qosbox qxm_crypto_qos = { ··· 253 253 .buswidth = 8, 254 254 .qosbox = &qxm_crypto_qos, 255 255 .num_links = 1, 256 - .link_nodes = (struct qcom_icc_node *[]) { &qns_a2noc_snoc }, 256 + .link_nodes = { &qns_a2noc_snoc }, 257 257 }; 258 258 259 259 static struct qcom_icc_qosbox qxm_ipa_qos = { ··· 270 270 .buswidth = 8, 271 271 .qosbox = &qxm_ipa_qos, 272 272 .num_links = 1, 273 - .link_nodes = (struct qcom_icc_node *[]) { &qns_a2noc_snoc }, 273 + .link_nodes = { &qns_a2noc_snoc }, 274 274 }; 275 275 276 276 static struct qcom_icc_qosbox xm_qdss_etr_0_qos = { ··· 287 287 .buswidth = 8, 288 288 .qosbox = &xm_qdss_etr_0_qos, 289 289 .num_links = 1, 290 - .link_nodes = (struct qcom_icc_node *[]) { &qns_a2noc_snoc }, 290 + .link_nodes = { &qns_a2noc_snoc }, 291 291 }; 292 292 293 293 static struct qcom_icc_qosbox xm_qdss_etr_1_qos = { ··· 304 304 .buswidth = 8, 305 305 .qosbox = &xm_qdss_etr_1_qos, 306 306 .num_links = 1, 307 - .link_nodes = (struct qcom_icc_node *[]) { &qns_a2noc_snoc }, 307 + .link_nodes = { &qns_a2noc_snoc }, 308 308 }; 309 309 310 310 static struct qcom_icc_qosbox xm_sdc1_qos = { ··· 321 321 .buswidth = 8, 322 322 .qosbox = &xm_sdc1_qos, 323 323 .num_links = 1, 324 - .link_nodes = (struct qcom_icc_node *[]) { &qns_a2noc_snoc }, 324 + .link_nodes = { &qns_a2noc_snoc }, 325 325 }; 326 326 327 327 static struct qcom_icc_qosbox xm_sdc2_qos = { ··· 338 338 .buswidth = 8, 339 339 .qosbox = &xm_sdc2_qos, 340 340 .num_links = 1, 341 - .link_nodes = (struct qcom_icc_node *[]) { &qns_a2noc_snoc }, 341 + .link_nodes = { &qns_a2noc_snoc }, 342 342 }; 343 343 344 344 static struct qcom_icc_node qup0_core_master = { ··· 346 346 .channels = 1, 347 347 .buswidth = 4, 348 348 .num_links = 1, 349 - .link_nodes = (struct qcom_icc_node *[]) { &qup0_core_slave }, 349 + .link_nodes = { &qup0_core_slave }, 350 350 }; 351 351 352 352 static struct qcom_icc_node qup1_core_master = { ··· 354 354 .channels = 1, 355 355 .buswidth = 4, 356 356 .num_links = 1, 357 - .link_nodes = (struct qcom_icc_node *[]) { &qup1_core_slave }, 357 + .link_nodes = { &qup1_core_slave }, 358 358 }; 359 359 360 360 static struct qcom_icc_node qsm_cfg = { ··· 362 362 .channels = 1, 363 363 .buswidth = 4, 364 364 .num_links = 35, 365 - .link_nodes = (struct qcom_icc_node *[]) { &qhs_ahb2phy0, &qhs_ahb2phy1, 365 + .link_nodes = { &qhs_ahb2phy0, &qhs_ahb2phy1, 366 366 &qhs_camera_cfg, &qhs_clk_ctl, 367 367 &qhs_cpr_cx, &qhs_cpr_mxa, 368 368 &qhs_crypto0_cfg, &qhs_cx_rdpm, ··· 387 387 .channels = 1, 388 388 .buswidth = 16, 389 389 .num_links = 14, 390 - .link_nodes = (struct qcom_icc_node *[]) { &qhs_aoss, &qhs_display_cfg, 390 + .link_nodes = { &qhs_aoss, &qhs_display_cfg, 391 391 &qhs_ipa, &qhs_ipc_router, 392 392 &qhs_pcie0_cfg, &qhs_pcie1_cfg, 393 393 &qhs_prng, &qhs_tme_cfg, ··· 401 401 .channels = 1, 402 402 .buswidth = 8, 403 403 .num_links = 2, 404 - .link_nodes = (struct qcom_icc_node *[]) { &xs_pcie_0, &xs_pcie_1 }, 404 + .link_nodes = { &xs_pcie_0, &xs_pcie_1 }, 405 405 }; 406 406 407 407 static struct qcom_icc_qosbox alm_gpu_tcu_qos = { ··· 418 418 .buswidth = 8, 419 419 .qosbox = &alm_gpu_tcu_qos, 420 420 .num_links = 2, 421 - .link_nodes = (struct qcom_icc_node *[]) { &qns_gem_noc_cnoc, &qns_llcc }, 421 + .link_nodes = { &qns_gem_noc_cnoc, &qns_llcc }, 422 422 }; 423 423 424 424 static struct qcom_icc_qosbox alm_sys_tcu_qos = { ··· 435 435 .buswidth = 8, 436 436 .qosbox = &alm_sys_tcu_qos, 437 437 .num_links = 2, 438 - .link_nodes = (struct qcom_icc_node *[]) { &qns_gem_noc_cnoc, &qns_llcc }, 438 + .link_nodes = { &qns_gem_noc_cnoc, &qns_llcc }, 439 439 }; 440 440 441 441 static struct qcom_icc_node chm_apps = { ··· 443 443 .channels = 3, 444 444 .buswidth = 32, 445 445 .num_links = 3, 446 - .link_nodes = (struct qcom_icc_node *[]) { &qns_gem_noc_cnoc, &qns_llcc, 446 + .link_nodes = { &qns_gem_noc_cnoc, &qns_llcc, 447 447 &qns_pcie }, 448 448 }; 449 449 ··· 461 461 .buswidth = 32, 462 462 .qosbox = &qnm_gpu_qos, 463 463 .num_links = 2, 464 - .link_nodes = (struct qcom_icc_node *[]) { &qns_gem_noc_cnoc, &qns_llcc }, 464 + .link_nodes = { &qns_gem_noc_cnoc, &qns_llcc }, 465 465 }; 466 466 467 467 static struct qcom_icc_qosbox qnm_lpass_gemnoc_qos = { ··· 478 478 .buswidth = 16, 479 479 .qosbox = &qnm_lpass_gemnoc_qos, 480 480 .num_links = 3, 481 - .link_nodes = (struct qcom_icc_node *[]) { &qns_gem_noc_cnoc, &qns_llcc, 481 + .link_nodes = { &qns_gem_noc_cnoc, &qns_llcc, 482 482 &qns_pcie }, 483 483 }; 484 484 ··· 487 487 .channels = 1, 488 488 .buswidth = 16, 489 489 .num_links = 3, 490 - .link_nodes = (struct qcom_icc_node *[]) { &qns_gem_noc_cnoc, &qns_llcc, 490 + .link_nodes = { &qns_gem_noc_cnoc, &qns_llcc, 491 491 &qns_pcie }, 492 492 }; 493 493 ··· 505 505 .buswidth = 32, 506 506 .qosbox = &qnm_mnoc_hf_qos, 507 507 .num_links = 2, 508 - .link_nodes = (struct qcom_icc_node *[]) { &qns_gem_noc_cnoc, &qns_llcc }, 508 + .link_nodes = { &qns_gem_noc_cnoc, &qns_llcc }, 509 509 }; 510 510 511 511 static struct qcom_icc_qosbox qnm_mnoc_sf_qos = { ··· 522 522 .buswidth = 32, 523 523 .qosbox = &qnm_mnoc_sf_qos, 524 524 .num_links = 2, 525 - .link_nodes = (struct qcom_icc_node *[]) { &qns_gem_noc_cnoc, &qns_llcc }, 525 + .link_nodes = { &qns_gem_noc_cnoc, &qns_llcc }, 526 526 }; 527 527 528 528 static struct qcom_icc_qosbox qnm_nsp_gemnoc_qos = { ··· 539 539 .buswidth = 32, 540 540 .qosbox = &qnm_nsp_gemnoc_qos, 541 541 .num_links = 3, 542 - .link_nodes = (struct qcom_icc_node *[]) { &qns_gem_noc_cnoc, &qns_llcc, 542 + .link_nodes = { &qns_gem_noc_cnoc, &qns_llcc, 543 543 &qns_pcie }, 544 544 }; 545 545 ··· 557 557 .buswidth = 8, 558 558 .qosbox = &qnm_pcie_qos, 559 559 .num_links = 2, 560 - .link_nodes = (struct qcom_icc_node *[]) { &qns_gem_noc_cnoc, &qns_llcc }, 560 + .link_nodes = { &qns_gem_noc_cnoc, &qns_llcc }, 561 561 }; 562 562 563 563 static struct qcom_icc_qosbox qnm_snoc_gc_qos = { ··· 574 574 .buswidth = 8, 575 575 .qosbox = &qnm_snoc_gc_qos, 576 576 .num_links = 1, 577 - .link_nodes = (struct qcom_icc_node *[]) { &qns_llcc }, 577 + .link_nodes = { &qns_llcc }, 578 578 }; 579 579 580 580 static struct qcom_icc_qosbox qnm_snoc_sf_qos = { ··· 591 591 .buswidth = 16, 592 592 .qosbox = &qnm_snoc_sf_qos, 593 593 .num_links = 3, 594 - .link_nodes = (struct qcom_icc_node *[]) { &qns_gem_noc_cnoc, &qns_llcc, 594 + .link_nodes = { &qns_gem_noc_cnoc, &qns_llcc, 595 595 &qns_pcie }, 596 596 }; 597 597 ··· 600 600 .channels = 1, 601 601 .buswidth = 8, 602 602 .num_links = 3, 603 - .link_nodes = (struct qcom_icc_node *[]) { &qns_gem_noc_cnoc, &qns_llcc, 603 + .link_nodes = { &qns_gem_noc_cnoc, &qns_llcc, 604 604 &qns_pcie }, 605 605 }; 606 606 ··· 609 609 .channels = 1, 610 610 .buswidth = 8, 611 611 .num_links = 1, 612 - .link_nodes = (struct qcom_icc_node *[]) { &qns_lpass_ag_noc_gemnoc }, 612 + .link_nodes = { &qns_lpass_ag_noc_gemnoc }, 613 613 }; 614 614 615 615 static struct qcom_icc_node llcc_mc = { ··· 617 617 .channels = 2, 618 618 .buswidth = 4, 619 619 .num_links = 1, 620 - .link_nodes = (struct qcom_icc_node *[]) { &ebi }, 620 + .link_nodes = { &ebi }, 621 621 }; 622 622 623 623 static struct qcom_icc_qosbox qnm_camnoc_hf_qos = { ··· 634 634 .buswidth = 32, 635 635 .qosbox = &qnm_camnoc_hf_qos, 636 636 .num_links = 1, 637 - .link_nodes = (struct qcom_icc_node *[]) { &qns_mem_noc_hf }, 637 + .link_nodes = { &qns_mem_noc_hf }, 638 638 }; 639 639 640 640 static struct qcom_icc_qosbox qnm_camnoc_icp_qos = { ··· 651 651 .buswidth = 8, 652 652 .qosbox = &qnm_camnoc_icp_qos, 653 653 .num_links = 1, 654 - .link_nodes = (struct qcom_icc_node *[]) { &qns_mem_noc_sf }, 654 + .link_nodes = { &qns_mem_noc_sf }, 655 655 }; 656 656 657 657 static struct qcom_icc_qosbox qnm_camnoc_sf_qos = { ··· 668 668 .buswidth = 32, 669 669 .qosbox = &qnm_camnoc_sf_qos, 670 670 .num_links = 1, 671 - .link_nodes = (struct qcom_icc_node *[]) { &qns_mem_noc_sf }, 671 + .link_nodes = { &qns_mem_noc_sf }, 672 672 }; 673 673 674 674 static struct qcom_icc_qosbox qnm_mdp_qos = { ··· 685 685 .buswidth = 32, 686 686 .qosbox = &qnm_mdp_qos, 687 687 .num_links = 1, 688 - .link_nodes = (struct qcom_icc_node *[]) { &qns_mem_noc_hf }, 688 + .link_nodes = { &qns_mem_noc_hf }, 689 689 }; 690 690 691 691 static struct qcom_icc_qosbox qnm_video_qos = { ··· 702 702 .buswidth = 32, 703 703 .qosbox = &qnm_video_qos, 704 704 .num_links = 1, 705 - .link_nodes = (struct qcom_icc_node *[]) { &qns_mem_noc_sf }, 705 + .link_nodes = { &qns_mem_noc_sf }, 706 706 }; 707 707 708 708 static struct qcom_icc_node qsm_hf_mnoc_cfg = { ··· 710 710 .channels = 1, 711 711 .buswidth = 4, 712 712 .num_links = 1, 713 - .link_nodes = (struct qcom_icc_node *[]) { &srvc_mnoc_hf }, 713 + .link_nodes = { &srvc_mnoc_hf }, 714 714 }; 715 715 716 716 static struct qcom_icc_node qsm_sf_mnoc_cfg = { ··· 718 718 .channels = 1, 719 719 .buswidth = 4, 720 720 .num_links = 1, 721 - .link_nodes = (struct qcom_icc_node *[]) { &srvc_mnoc_sf }, 721 + .link_nodes = { &srvc_mnoc_sf }, 722 722 }; 723 723 724 724 static struct qcom_icc_node qxm_nsp = { ··· 726 726 .channels = 2, 727 727 .buswidth = 32, 728 728 .num_links = 1, 729 - .link_nodes = (struct qcom_icc_node *[]) { &qns_nsp_gemnoc }, 729 + .link_nodes = { &qns_nsp_gemnoc }, 730 730 }; 731 731 732 732 static struct qcom_icc_node qsm_pcie_anoc_cfg = { ··· 734 734 .channels = 1, 735 735 .buswidth = 4, 736 736 .num_links = 1, 737 - .link_nodes = (struct qcom_icc_node *[]) { &srvc_pcie_aggre_noc }, 737 + .link_nodes = { &srvc_pcie_aggre_noc }, 738 738 }; 739 739 740 740 static struct qcom_icc_qosbox xm_pcie3_0_qos = { ··· 751 751 .buswidth = 8, 752 752 .qosbox = &xm_pcie3_0_qos, 753 753 .num_links = 1, 754 - .link_nodes = (struct qcom_icc_node *[]) { &qns_pcie_mem_noc }, 754 + .link_nodes = { &qns_pcie_mem_noc }, 755 755 }; 756 756 757 757 static struct qcom_icc_qosbox xm_pcie3_1_qos = { ··· 768 768 .buswidth = 8, 769 769 .qosbox = &xm_pcie3_1_qos, 770 770 .num_links = 1, 771 - .link_nodes = (struct qcom_icc_node *[]) { &qns_pcie_mem_noc }, 771 + .link_nodes = { &qns_pcie_mem_noc }, 772 772 }; 773 773 774 774 static struct qcom_icc_node qnm_aggre1_noc = { ··· 776 776 .channels = 1, 777 777 .buswidth = 16, 778 778 .num_links = 1, 779 - .link_nodes = (struct qcom_icc_node *[]) { &qns_gemnoc_sf }, 779 + .link_nodes = { &qns_gemnoc_sf }, 780 780 }; 781 781 782 782 static struct qcom_icc_node qnm_aggre2_noc = { ··· 784 784 .channels = 1, 785 785 .buswidth = 16, 786 786 .num_links = 1, 787 - .link_nodes = (struct qcom_icc_node *[]) { &qns_gemnoc_sf }, 787 + .link_nodes = { &qns_gemnoc_sf }, 788 788 }; 789 789 790 790 static struct qcom_icc_qosbox qnm_apss_noc_qos = { ··· 801 801 .buswidth = 4, 802 802 .qosbox = &qnm_apss_noc_qos, 803 803 .num_links = 1, 804 - .link_nodes = (struct qcom_icc_node *[]) { &qns_gemnoc_sf }, 804 + .link_nodes = { &qns_gemnoc_sf }, 805 805 }; 806 806 807 807 static struct qcom_icc_qosbox qnm_cnoc_data_qos = { ··· 818 818 .buswidth = 8, 819 819 .qosbox = &qnm_cnoc_data_qos, 820 820 .num_links = 1, 821 - .link_nodes = (struct qcom_icc_node *[]) { &qns_gemnoc_sf }, 821 + .link_nodes = { &qns_gemnoc_sf }, 822 822 }; 823 823 824 824 static struct qcom_icc_qosbox qxm_pimem_qos = { ··· 835 835 .buswidth = 8, 836 836 .qosbox = &qxm_pimem_qos, 837 837 .num_links = 1, 838 - .link_nodes = (struct qcom_icc_node *[]) { &qns_gemnoc_gc }, 838 + .link_nodes = { &qns_gemnoc_gc }, 839 839 }; 840 840 841 841 static struct qcom_icc_qosbox xm_gic_qos = { ··· 852 852 .buswidth = 8, 853 853 .qosbox = &xm_gic_qos, 854 854 .num_links = 1, 855 - .link_nodes = (struct qcom_icc_node *[]) { &qns_gemnoc_gc }, 855 + .link_nodes = { &qns_gemnoc_gc }, 856 856 }; 857 857 858 858 static struct qcom_icc_node qns_a1noc_snoc = { ··· 860 860 .channels = 1, 861 861 .buswidth = 16, 862 862 .num_links = 1, 863 - .link_nodes = (struct qcom_icc_node *[]) { &qnm_aggre1_noc }, 863 + .link_nodes = { &qnm_aggre1_noc }, 864 864 }; 865 865 866 866 static struct qcom_icc_node qns_a2noc_snoc = { ··· 868 868 .channels = 1, 869 869 .buswidth = 16, 870 870 .num_links = 1, 871 - .link_nodes = (struct qcom_icc_node *[]) { &qnm_aggre2_noc }, 871 + .link_nodes = { &qnm_aggre2_noc }, 872 872 }; 873 873 874 874 static struct qcom_icc_node qup0_core_slave = { ··· 1079 1079 .channels = 1, 1080 1080 .buswidth = 4, 1081 1081 .num_links = 1, 1082 - .link_nodes = (struct qcom_icc_node *[]) { &qsm_hf_mnoc_cfg }, 1082 + .link_nodes = { &qsm_hf_mnoc_cfg }, 1083 1083 }; 1084 1084 1085 1085 static struct qcom_icc_node qss_mnoc_sf_cfg = { ··· 1087 1087 .channels = 1, 1088 1088 .buswidth = 4, 1089 1089 .num_links = 1, 1090 - .link_nodes = (struct qcom_icc_node *[]) { &qsm_sf_mnoc_cfg }, 1090 + .link_nodes = { &qsm_sf_mnoc_cfg }, 1091 1091 }; 1092 1092 1093 1093 static struct qcom_icc_node qss_nsp_qtb_cfg = { ··· 1102 1102 .channels = 1, 1103 1103 .buswidth = 4, 1104 1104 .num_links = 1, 1105 - .link_nodes = (struct qcom_icc_node *[]) { &qsm_pcie_anoc_cfg }, 1105 + .link_nodes = { &qsm_pcie_anoc_cfg }, 1106 1106 }; 1107 1107 1108 1108 static struct qcom_icc_node qss_wlan_q6_throttle_cfg = { ··· 1201 1201 .channels = 1, 1202 1202 .buswidth = 4, 1203 1203 .num_links = 1, 1204 - .link_nodes = (struct qcom_icc_node *[]) { &qsm_cfg }, 1204 + .link_nodes = { &qsm_cfg }, 1205 1205 }; 1206 1206 1207 1207 static struct qcom_icc_node qss_ddrss_cfg = { ··· 1251 1251 .channels = 1, 1252 1252 .buswidth = 16, 1253 1253 .num_links = 1, 1254 - .link_nodes = (struct qcom_icc_node *[]) { &qnm_gemnoc_cnoc }, 1254 + .link_nodes = { &qnm_gemnoc_cnoc }, 1255 1255 }; 1256 1256 1257 1257 static struct qcom_icc_node qns_llcc = { ··· 1259 1259 .channels = 2, 1260 1260 .buswidth = 16, 1261 1261 .num_links = 1, 1262 - .link_nodes = (struct qcom_icc_node *[]) { &llcc_mc }, 1262 + .link_nodes = { &llcc_mc }, 1263 1263 }; 1264 1264 1265 1265 static struct qcom_icc_node qns_pcie = { ··· 1267 1267 .channels = 1, 1268 1268 .buswidth = 8, 1269 1269 .num_links = 1, 1270 - .link_nodes = (struct qcom_icc_node *[]) { &qnm_gemnoc_pcie }, 1270 + .link_nodes = { &qnm_gemnoc_pcie }, 1271 1271 }; 1272 1272 1273 1273 static struct qcom_icc_node qns_lpass_ag_noc_gemnoc = { ··· 1275 1275 .channels = 1, 1276 1276 .buswidth = 16, 1277 1277 .num_links = 1, 1278 - .link_nodes = (struct qcom_icc_node *[]) { &qnm_lpass_gemnoc }, 1278 + .link_nodes = { &qnm_lpass_gemnoc }, 1279 1279 }; 1280 1280 1281 1281 static struct qcom_icc_node ebi = { ··· 1290 1290 .channels = 2, 1291 1291 .buswidth = 32, 1292 1292 .num_links = 1, 1293 - .link_nodes = (struct qcom_icc_node *[]) { &qnm_mnoc_hf }, 1293 + .link_nodes = { &qnm_mnoc_hf }, 1294 1294 }; 1295 1295 1296 1296 static struct qcom_icc_node qns_mem_noc_sf = { ··· 1298 1298 .channels = 2, 1299 1299 .buswidth = 32, 1300 1300 .num_links = 1, 1301 - .link_nodes = (struct qcom_icc_node *[]) { &qnm_mnoc_sf }, 1301 + .link_nodes = { &qnm_mnoc_sf }, 1302 1302 }; 1303 1303 1304 1304 static struct qcom_icc_node srvc_mnoc_hf = { ··· 1320 1320 .channels = 2, 1321 1321 .buswidth = 32, 1322 1322 .num_links = 1, 1323 - .link_nodes = (struct qcom_icc_node *[]) { &qnm_nsp_gemnoc }, 1323 + .link_nodes = { &qnm_nsp_gemnoc }, 1324 1324 }; 1325 1325 1326 1326 static struct qcom_icc_node qns_pcie_mem_noc = { ··· 1328 1328 .channels = 1, 1329 1329 .buswidth = 8, 1330 1330 .num_links = 1, 1331 - .link_nodes = (struct qcom_icc_node *[]) { &qnm_pcie }, 1331 + .link_nodes = { &qnm_pcie }, 1332 1332 }; 1333 1333 1334 1334 static struct qcom_icc_node srvc_pcie_aggre_noc = { ··· 1343 1343 .channels = 1, 1344 1344 .buswidth = 8, 1345 1345 .num_links = 1, 1346 - .link_nodes = (struct qcom_icc_node *[]) { &qnm_snoc_gc }, 1346 + .link_nodes = { &qnm_snoc_gc }, 1347 1347 }; 1348 1348 1349 1349 static struct qcom_icc_node qns_gemnoc_sf = { ··· 1351 1351 .channels = 1, 1352 1352 .buswidth = 16, 1353 1353 .num_links = 1, 1354 - .link_nodes = (struct qcom_icc_node *[]) { &qnm_snoc_sf }, 1354 + .link_nodes = { &qnm_snoc_sf }, 1355 1355 }; 1356 1356 1357 1357 static struct qcom_icc_bcm bcm_acv = {
+93 -93
drivers/interconnect/qcom/sa8775p.c
··· 214 214 .channels = 1, 215 215 .buswidth = 8, 216 216 .num_links = 1, 217 - .link_nodes = (struct qcom_icc_node *[]) { &qns_a1noc_snoc }, 217 + .link_nodes = { &qns_a1noc_snoc }, 218 218 }; 219 219 220 220 static struct qcom_icc_node xm_emac_0 = { ··· 222 222 .channels = 1, 223 223 .buswidth = 8, 224 224 .num_links = 1, 225 - .link_nodes = (struct qcom_icc_node *[]) { &qns_a1noc_snoc }, 225 + .link_nodes = { &qns_a1noc_snoc }, 226 226 }; 227 227 228 228 static struct qcom_icc_node xm_emac_1 = { ··· 230 230 .channels = 1, 231 231 .buswidth = 8, 232 232 .num_links = 1, 233 - .link_nodes = (struct qcom_icc_node *[]) { &qns_a1noc_snoc }, 233 + .link_nodes = { &qns_a1noc_snoc }, 234 234 }; 235 235 236 236 static struct qcom_icc_node xm_sdc1 = { ··· 238 238 .channels = 1, 239 239 .buswidth = 8, 240 240 .num_links = 1, 241 - .link_nodes = (struct qcom_icc_node *[]) { &qns_a1noc_snoc }, 241 + .link_nodes = { &qns_a1noc_snoc }, 242 242 }; 243 243 244 244 static struct qcom_icc_node xm_ufs_mem = { ··· 246 246 .channels = 1, 247 247 .buswidth = 8, 248 248 .num_links = 1, 249 - .link_nodes = (struct qcom_icc_node *[]) { &qns_a1noc_snoc }, 249 + .link_nodes = { &qns_a1noc_snoc }, 250 250 }; 251 251 252 252 static struct qcom_icc_node xm_usb2_2 = { ··· 254 254 .channels = 1, 255 255 .buswidth = 8, 256 256 .num_links = 1, 257 - .link_nodes = (struct qcom_icc_node *[]) { &qns_a1noc_snoc }, 257 + .link_nodes = { &qns_a1noc_snoc }, 258 258 }; 259 259 260 260 static struct qcom_icc_node xm_usb3_0 = { ··· 262 262 .channels = 1, 263 263 .buswidth = 8, 264 264 .num_links = 1, 265 - .link_nodes = (struct qcom_icc_node *[]) { &qns_a1noc_snoc }, 265 + .link_nodes = { &qns_a1noc_snoc }, 266 266 }; 267 267 268 268 static struct qcom_icc_node xm_usb3_1 = { ··· 270 270 .channels = 1, 271 271 .buswidth = 8, 272 272 .num_links = 1, 273 - .link_nodes = (struct qcom_icc_node *[]) { &qns_a1noc_snoc }, 273 + .link_nodes = { &qns_a1noc_snoc }, 274 274 }; 275 275 276 276 static struct qcom_icc_node qhm_qdss_bam = { ··· 278 278 .channels = 1, 279 279 .buswidth = 4, 280 280 .num_links = 1, 281 - .link_nodes = (struct qcom_icc_node *[]) { &qns_a2noc_snoc }, 281 + .link_nodes = { &qns_a2noc_snoc }, 282 282 }; 283 283 284 284 static struct qcom_icc_node qhm_qup0 = { ··· 286 286 .channels = 1, 287 287 .buswidth = 4, 288 288 .num_links = 1, 289 - .link_nodes = (struct qcom_icc_node *[]) { &qns_a2noc_snoc }, 289 + .link_nodes = { &qns_a2noc_snoc }, 290 290 }; 291 291 292 292 static struct qcom_icc_node qhm_qup1 = { ··· 294 294 .channels = 1, 295 295 .buswidth = 4, 296 296 .num_links = 1, 297 - .link_nodes = (struct qcom_icc_node *[]) { &qns_a2noc_snoc }, 297 + .link_nodes = { &qns_a2noc_snoc }, 298 298 }; 299 299 300 300 static struct qcom_icc_node qhm_qup2 = { ··· 302 302 .channels = 1, 303 303 .buswidth = 4, 304 304 .num_links = 1, 305 - .link_nodes = (struct qcom_icc_node *[]) { &qns_a2noc_snoc }, 305 + .link_nodes = { &qns_a2noc_snoc }, 306 306 }; 307 307 308 308 static struct qcom_icc_node qnm_cnoc_datapath = { ··· 310 310 .channels = 1, 311 311 .buswidth = 8, 312 312 .num_links = 1, 313 - .link_nodes = (struct qcom_icc_node *[]) { &qns_a2noc_snoc }, 313 + .link_nodes = { &qns_a2noc_snoc }, 314 314 }; 315 315 316 316 static struct qcom_icc_node qxm_crypto_0 = { ··· 318 318 .channels = 1, 319 319 .buswidth = 8, 320 320 .num_links = 1, 321 - .link_nodes = (struct qcom_icc_node *[]) { &qns_a2noc_snoc }, 321 + .link_nodes = { &qns_a2noc_snoc }, 322 322 }; 323 323 324 324 static struct qcom_icc_node qxm_crypto_1 = { ··· 326 326 .channels = 1, 327 327 .buswidth = 8, 328 328 .num_links = 1, 329 - .link_nodes = (struct qcom_icc_node *[]) { &qns_a2noc_snoc }, 329 + .link_nodes = { &qns_a2noc_snoc }, 330 330 }; 331 331 332 332 static struct qcom_icc_node qxm_ipa = { ··· 334 334 .channels = 1, 335 335 .buswidth = 8, 336 336 .num_links = 1, 337 - .link_nodes = (struct qcom_icc_node *[]) { &qns_a2noc_snoc }, 337 + .link_nodes = { &qns_a2noc_snoc }, 338 338 }; 339 339 340 340 static struct qcom_icc_node xm_qdss_etr_0 = { ··· 342 342 .channels = 1, 343 343 .buswidth = 8, 344 344 .num_links = 1, 345 - .link_nodes = (struct qcom_icc_node *[]) { &qns_a2noc_snoc }, 345 + .link_nodes = { &qns_a2noc_snoc }, 346 346 }; 347 347 348 348 static struct qcom_icc_node xm_qdss_etr_1 = { ··· 350 350 .channels = 1, 351 351 .buswidth = 8, 352 352 .num_links = 1, 353 - .link_nodes = (struct qcom_icc_node *[]) { &qns_a2noc_snoc }, 353 + .link_nodes = { &qns_a2noc_snoc }, 354 354 }; 355 355 356 356 static struct qcom_icc_node xm_ufs_card = { ··· 358 358 .channels = 1, 359 359 .buswidth = 8, 360 360 .num_links = 1, 361 - .link_nodes = (struct qcom_icc_node *[]) { &qns_a2noc_snoc }, 361 + .link_nodes = { &qns_a2noc_snoc }, 362 362 }; 363 363 364 364 static struct qcom_icc_node qup0_core_master = { ··· 366 366 .channels = 1, 367 367 .buswidth = 4, 368 368 .num_links = 1, 369 - .link_nodes = (struct qcom_icc_node *[]) { &qup0_core_slave }, 369 + .link_nodes = { &qup0_core_slave }, 370 370 }; 371 371 372 372 static struct qcom_icc_node qup1_core_master = { ··· 374 374 .channels = 1, 375 375 .buswidth = 4, 376 376 .num_links = 1, 377 - .link_nodes = (struct qcom_icc_node *[]) { &qup1_core_slave }, 377 + .link_nodes = { &qup1_core_slave }, 378 378 }; 379 379 380 380 static struct qcom_icc_node qup2_core_master = { ··· 382 382 .channels = 1, 383 383 .buswidth = 4, 384 384 .num_links = 1, 385 - .link_nodes = (struct qcom_icc_node *[]) { &qup2_core_slave }, 385 + .link_nodes = { &qup2_core_slave }, 386 386 }; 387 387 388 388 static struct qcom_icc_node qup3_core_master = { ··· 390 390 .channels = 1, 391 391 .buswidth = 4, 392 392 .num_links = 1, 393 - .link_nodes = (struct qcom_icc_node *[]) { &qup3_core_slave }, 393 + .link_nodes = { &qup3_core_slave }, 394 394 }; 395 395 396 396 static struct qcom_icc_node qnm_gemnoc_cnoc = { ··· 398 398 .channels = 1, 399 399 .buswidth = 16, 400 400 .num_links = 82, 401 - .link_nodes = (struct qcom_icc_node *[]) { &qhs_ahb2phy0, &qhs_ahb2phy1, 401 + .link_nodes = { &qhs_ahb2phy0, &qhs_ahb2phy1, 402 402 &qhs_ahb2phy2, &qhs_ahb2phy3, 403 403 &qhs_anoc_throttle_cfg, &qhs_aoss, 404 404 &qhs_apss, &qhs_boot_rom, ··· 446 446 .channels = 1, 447 447 .buswidth = 16, 448 448 .num_links = 2, 449 - .link_nodes = (struct qcom_icc_node *[]) { &xs_pcie_0, &xs_pcie_1 }, 449 + .link_nodes = { &xs_pcie_0, &xs_pcie_1 }, 450 450 }; 451 451 452 452 static struct qcom_icc_node qnm_cnoc_dc_noc = { ··· 454 454 .channels = 1, 455 455 .buswidth = 4, 456 456 .num_links = 2, 457 - .link_nodes = (struct qcom_icc_node *[]) { &qhs_llcc, &qns_gemnoc }, 457 + .link_nodes = { &qhs_llcc, &qns_gemnoc }, 458 458 }; 459 459 460 460 static struct qcom_icc_node alm_gpu_tcu = { ··· 462 462 .channels = 1, 463 463 .buswidth = 8, 464 464 .num_links = 2, 465 - .link_nodes = (struct qcom_icc_node *[]) { &qns_gem_noc_cnoc, &qns_llcc }, 465 + .link_nodes = { &qns_gem_noc_cnoc, &qns_llcc }, 466 466 }; 467 467 468 468 static struct qcom_icc_node alm_pcie_tcu = { ··· 470 470 .channels = 1, 471 471 .buswidth = 8, 472 472 .num_links = 2, 473 - .link_nodes = (struct qcom_icc_node *[]) { &qns_gem_noc_cnoc, &qns_llcc }, 473 + .link_nodes = { &qns_gem_noc_cnoc, &qns_llcc }, 474 474 }; 475 475 476 476 static struct qcom_icc_node alm_sys_tcu = { ··· 478 478 .channels = 1, 479 479 .buswidth = 8, 480 480 .num_links = 2, 481 - .link_nodes = (struct qcom_icc_node *[]) { &qns_gem_noc_cnoc, &qns_llcc }, 481 + .link_nodes = { &qns_gem_noc_cnoc, &qns_llcc }, 482 482 }; 483 483 484 484 static struct qcom_icc_node chm_apps = { ··· 486 486 .channels = 4, 487 487 .buswidth = 32, 488 488 .num_links = 3, 489 - .link_nodes = (struct qcom_icc_node *[]) { &qns_gem_noc_cnoc, &qns_llcc, 489 + .link_nodes = { &qns_gem_noc_cnoc, &qns_llcc, 490 490 &qns_pcie }, 491 491 }; 492 492 ··· 495 495 .channels = 2, 496 496 .buswidth = 32, 497 497 .num_links = 2, 498 - .link_nodes = (struct qcom_icc_node *[]) { &qns_gem_noc_cnoc, &qns_llcc }, 498 + .link_nodes = { &qns_gem_noc_cnoc, &qns_llcc }, 499 499 }; 500 500 501 501 static struct qcom_icc_node qnm_cmpnoc1 = { ··· 503 503 .channels = 2, 504 504 .buswidth = 32, 505 505 .num_links = 2, 506 - .link_nodes = (struct qcom_icc_node *[]) { &qns_gem_noc_cnoc, &qns_llcc }, 506 + .link_nodes = { &qns_gem_noc_cnoc, &qns_llcc }, 507 507 }; 508 508 509 509 static struct qcom_icc_node qnm_gemnoc_cfg = { ··· 511 511 .channels = 1, 512 512 .buswidth = 4, 513 513 .num_links = 4, 514 - .link_nodes = (struct qcom_icc_node *[]) { &srvc_even_gemnoc, &srvc_odd_gemnoc, 514 + .link_nodes = { &srvc_even_gemnoc, &srvc_odd_gemnoc, 515 515 &srvc_sys_gemnoc, &srvc_sys_gemnoc_2 }, 516 516 }; 517 517 ··· 520 520 .channels = 1, 521 521 .buswidth = 16, 522 522 .num_links = 2, 523 - .link_nodes = (struct qcom_icc_node *[]) { &qns_gem_noc_cnoc, &qns_llcc }, 523 + .link_nodes = { &qns_gem_noc_cnoc, &qns_llcc }, 524 524 }; 525 525 526 526 static struct qcom_icc_node qnm_gpu = { ··· 528 528 .channels = 2, 529 529 .buswidth = 32, 530 530 .num_links = 2, 531 - .link_nodes = (struct qcom_icc_node *[]) { &qns_gem_noc_cnoc, &qns_llcc }, 531 + .link_nodes = { &qns_gem_noc_cnoc, &qns_llcc }, 532 532 }; 533 533 534 534 static struct qcom_icc_node qnm_mnoc_hf = { ··· 536 536 .channels = 2, 537 537 .buswidth = 32, 538 538 .num_links = 2, 539 - .link_nodes = (struct qcom_icc_node *[]) { &qns_llcc, &qns_pcie }, 539 + .link_nodes = { &qns_llcc, &qns_pcie }, 540 540 }; 541 541 542 542 static struct qcom_icc_node qnm_mnoc_sf = { ··· 544 544 .channels = 2, 545 545 .buswidth = 32, 546 546 .num_links = 3, 547 - .link_nodes = (struct qcom_icc_node *[]) { &qns_gem_noc_cnoc, &qns_llcc, 547 + .link_nodes = { &qns_gem_noc_cnoc, &qns_llcc, 548 548 &qns_pcie }, 549 549 }; 550 550 ··· 553 553 .channels = 1, 554 554 .buswidth = 32, 555 555 .num_links = 2, 556 - .link_nodes = (struct qcom_icc_node *[]) { &qns_gem_noc_cnoc, &qns_llcc }, 556 + .link_nodes = { &qns_gem_noc_cnoc, &qns_llcc }, 557 557 }; 558 558 559 559 static struct qcom_icc_node qnm_snoc_gc = { ··· 561 561 .channels = 1, 562 562 .buswidth = 8, 563 563 .num_links = 1, 564 - .link_nodes = (struct qcom_icc_node *[]) { &qns_llcc }, 564 + .link_nodes = { &qns_llcc }, 565 565 }; 566 566 567 567 static struct qcom_icc_node qnm_snoc_sf = { ··· 569 569 .channels = 1, 570 570 .buswidth = 16, 571 571 .num_links = 3, 572 - .link_nodes = (struct qcom_icc_node *[]) { &qns_gem_noc_cnoc, &qns_llcc, 572 + .link_nodes = { &qns_gem_noc_cnoc, &qns_llcc, 573 573 &qns_pcie }, 574 574 }; 575 575 ··· 578 578 .channels = 1, 579 579 .buswidth = 16, 580 580 .num_links = 1, 581 - .link_nodes = (struct qcom_icc_node *[]) { &qns_gp_dsp_sail_noc }, 581 + .link_nodes = { &qns_gp_dsp_sail_noc }, 582 582 }; 583 583 584 584 static struct qcom_icc_node qxm_dsp1 = { ··· 586 586 .channels = 1, 587 587 .buswidth = 16, 588 588 .num_links = 1, 589 - .link_nodes = (struct qcom_icc_node *[]) { &qns_gp_dsp_sail_noc }, 589 + .link_nodes = { &qns_gp_dsp_sail_noc }, 590 590 }; 591 591 592 592 static struct qcom_icc_node qhm_config_noc = { ··· 594 594 .channels = 1, 595 595 .buswidth = 4, 596 596 .num_links = 6, 597 - .link_nodes = (struct qcom_icc_node *[]) { &qhs_lpass_core, &qhs_lpass_lpi, 597 + .link_nodes = { &qhs_lpass_core, &qhs_lpass_lpi, 598 598 &qhs_lpass_mpu, &qhs_lpass_top, 599 599 &srvc_niu_aml_noc, &srvc_niu_lpass_agnoc }, 600 600 }; ··· 604 604 .channels = 1, 605 605 .buswidth = 8, 606 606 .num_links = 4, 607 - .link_nodes = (struct qcom_icc_node *[]) { &qhs_lpass_top, &qns_sysnoc, 607 + .link_nodes = { &qhs_lpass_top, &qns_sysnoc, 608 608 &srvc_niu_aml_noc, &srvc_niu_lpass_agnoc }, 609 609 }; 610 610 ··· 613 613 .channels = 8, 614 614 .buswidth = 4, 615 615 .num_links = 1, 616 - .link_nodes = (struct qcom_icc_node *[]) { &ebi }, 616 + .link_nodes = { &ebi }, 617 617 }; 618 618 619 619 static struct qcom_icc_node qnm_camnoc_hf = { ··· 621 621 .channels = 1, 622 622 .buswidth = 32, 623 623 .num_links = 1, 624 - .link_nodes = (struct qcom_icc_node *[]) { &qns_mem_noc_hf }, 624 + .link_nodes = { &qns_mem_noc_hf }, 625 625 }; 626 626 627 627 static struct qcom_icc_node qnm_camnoc_icp = { ··· 629 629 .channels = 1, 630 630 .buswidth = 8, 631 631 .num_links = 1, 632 - .link_nodes = (struct qcom_icc_node *[]) { &qns_mem_noc_sf }, 632 + .link_nodes = { &qns_mem_noc_sf }, 633 633 }; 634 634 635 635 static struct qcom_icc_node qnm_camnoc_sf = { ··· 637 637 .channels = 1, 638 638 .buswidth = 32, 639 639 .num_links = 1, 640 - .link_nodes = (struct qcom_icc_node *[]) { &qns_mem_noc_sf }, 640 + .link_nodes = { &qns_mem_noc_sf }, 641 641 }; 642 642 643 643 static struct qcom_icc_node qnm_mdp0_0 = { ··· 645 645 .channels = 1, 646 646 .buswidth = 32, 647 647 .num_links = 1, 648 - .link_nodes = (struct qcom_icc_node *[]) { &qns_mem_noc_hf }, 648 + .link_nodes = { &qns_mem_noc_hf }, 649 649 }; 650 650 651 651 static struct qcom_icc_node qnm_mdp0_1 = { ··· 653 653 .channels = 1, 654 654 .buswidth = 32, 655 655 .num_links = 1, 656 - .link_nodes = (struct qcom_icc_node *[]) { &qns_mem_noc_hf }, 656 + .link_nodes = { &qns_mem_noc_hf }, 657 657 }; 658 658 659 659 static struct qcom_icc_node qnm_mdp1_0 = { ··· 661 661 .channels = 1, 662 662 .buswidth = 32, 663 663 .num_links = 1, 664 - .link_nodes = (struct qcom_icc_node *[]) { &qns_mem_noc_hf }, 664 + .link_nodes = { &qns_mem_noc_hf }, 665 665 }; 666 666 667 667 static struct qcom_icc_node qnm_mdp1_1 = { ··· 669 669 .channels = 1, 670 670 .buswidth = 32, 671 671 .num_links = 1, 672 - .link_nodes = (struct qcom_icc_node *[]) { &qns_mem_noc_hf }, 672 + .link_nodes = { &qns_mem_noc_hf }, 673 673 }; 674 674 675 675 static struct qcom_icc_node qnm_mnoc_hf_cfg = { ··· 677 677 .channels = 1, 678 678 .buswidth = 4, 679 679 .num_links = 1, 680 - .link_nodes = (struct qcom_icc_node *[]) { &srvc_mnoc_hf }, 680 + .link_nodes = { &srvc_mnoc_hf }, 681 681 }; 682 682 683 683 static struct qcom_icc_node qnm_mnoc_sf_cfg = { ··· 685 685 .channels = 1, 686 686 .buswidth = 4, 687 687 .num_links = 1, 688 - .link_nodes = (struct qcom_icc_node *[]) { &srvc_mnoc_sf }, 688 + .link_nodes = { &srvc_mnoc_sf }, 689 689 }; 690 690 691 691 static struct qcom_icc_node qnm_video0 = { ··· 693 693 .channels = 1, 694 694 .buswidth = 32, 695 695 .num_links = 1, 696 - .link_nodes = (struct qcom_icc_node *[]) { &qns_mem_noc_sf }, 696 + .link_nodes = { &qns_mem_noc_sf }, 697 697 }; 698 698 699 699 static struct qcom_icc_node qnm_video1 = { ··· 701 701 .channels = 1, 702 702 .buswidth = 32, 703 703 .num_links = 1, 704 - .link_nodes = (struct qcom_icc_node *[]) { &qns_mem_noc_sf }, 704 + .link_nodes = { &qns_mem_noc_sf }, 705 705 }; 706 706 707 707 static struct qcom_icc_node qnm_video_cvp = { ··· 709 709 .channels = 1, 710 710 .buswidth = 32, 711 711 .num_links = 1, 712 - .link_nodes = (struct qcom_icc_node *[]) { &qns_mem_noc_sf }, 712 + .link_nodes = { &qns_mem_noc_sf }, 713 713 }; 714 714 715 715 static struct qcom_icc_node qnm_video_v_cpu = { ··· 717 717 .channels = 1, 718 718 .buswidth = 8, 719 719 .num_links = 1, 720 - .link_nodes = (struct qcom_icc_node *[]) { &qns_mem_noc_sf }, 720 + .link_nodes = { &qns_mem_noc_sf }, 721 721 }; 722 722 723 723 static struct qcom_icc_node qhm_nsp_noc_config = { ··· 725 725 .channels = 1, 726 726 .buswidth = 4, 727 727 .num_links = 1, 728 - .link_nodes = (struct qcom_icc_node *[]) { &service_nsp_noc }, 728 + .link_nodes = { &service_nsp_noc }, 729 729 }; 730 730 731 731 static struct qcom_icc_node qxm_nsp = { ··· 733 733 .channels = 2, 734 734 .buswidth = 32, 735 735 .num_links = 2, 736 - .link_nodes = (struct qcom_icc_node *[]) { &qns_hcp, &qns_nsp_gemnoc }, 736 + .link_nodes = { &qns_hcp, &qns_nsp_gemnoc }, 737 737 }; 738 738 739 739 static struct qcom_icc_node qhm_nspb_noc_config = { ··· 741 741 .channels = 1, 742 742 .buswidth = 4, 743 743 .num_links = 1, 744 - .link_nodes = (struct qcom_icc_node *[]) { &service_nspb_noc }, 744 + .link_nodes = { &service_nspb_noc }, 745 745 }; 746 746 747 747 static struct qcom_icc_node qxm_nspb = { ··· 749 749 .channels = 2, 750 750 .buswidth = 32, 751 751 .num_links = 2, 752 - .link_nodes = (struct qcom_icc_node *[]) { &qns_nspb_hcp, &qns_nspb_gemnoc }, 752 + .link_nodes = { &qns_nspb_hcp, &qns_nspb_gemnoc }, 753 753 }; 754 754 755 755 static struct qcom_icc_node xm_pcie3_0 = { ··· 757 757 .channels = 1, 758 758 .buswidth = 16, 759 759 .num_links = 1, 760 - .link_nodes = (struct qcom_icc_node *[]) { &qns_pcie_mem_noc }, 760 + .link_nodes = { &qns_pcie_mem_noc }, 761 761 }; 762 762 763 763 static struct qcom_icc_node xm_pcie3_1 = { ··· 765 765 .channels = 1, 766 766 .buswidth = 32, 767 767 .num_links = 1, 768 - .link_nodes = (struct qcom_icc_node *[]) { &qns_pcie_mem_noc }, 768 + .link_nodes = { &qns_pcie_mem_noc }, 769 769 }; 770 770 771 771 static struct qcom_icc_node qhm_gic = { ··· 773 773 .channels = 1, 774 774 .buswidth = 4, 775 775 .num_links = 1, 776 - .link_nodes = (struct qcom_icc_node *[]) { &qns_gemnoc_sf }, 776 + .link_nodes = { &qns_gemnoc_sf }, 777 777 }; 778 778 779 779 static struct qcom_icc_node qnm_aggre1_noc = { ··· 781 781 .channels = 1, 782 782 .buswidth = 32, 783 783 .num_links = 1, 784 - .link_nodes = (struct qcom_icc_node *[]) { &qns_gemnoc_sf }, 784 + .link_nodes = { &qns_gemnoc_sf }, 785 785 }; 786 786 787 787 static struct qcom_icc_node qnm_aggre2_noc = { ··· 789 789 .channels = 1, 790 790 .buswidth = 16, 791 791 .num_links = 1, 792 - .link_nodes = (struct qcom_icc_node *[]) { &qns_gemnoc_sf }, 792 + .link_nodes = { &qns_gemnoc_sf }, 793 793 }; 794 794 795 795 static struct qcom_icc_node qnm_lpass_noc = { ··· 797 797 .channels = 1, 798 798 .buswidth = 16, 799 799 .num_links = 1, 800 - .link_nodes = (struct qcom_icc_node *[]) { &qns_gemnoc_sf }, 800 + .link_nodes = { &qns_gemnoc_sf }, 801 801 }; 802 802 803 803 static struct qcom_icc_node qnm_snoc_cfg = { ··· 805 805 .channels = 1, 806 806 .buswidth = 4, 807 807 .num_links = 1, 808 - .link_nodes = (struct qcom_icc_node *[]) { &srvc_snoc }, 808 + .link_nodes = { &srvc_snoc }, 809 809 }; 810 810 811 811 static struct qcom_icc_node qxm_pimem = { ··· 813 813 .channels = 1, 814 814 .buswidth = 8, 815 815 .num_links = 1, 816 - .link_nodes = (struct qcom_icc_node *[]) { &qns_gemnoc_gc }, 816 + .link_nodes = { &qns_gemnoc_gc }, 817 817 }; 818 818 819 819 static struct qcom_icc_node xm_gic = { ··· 821 821 .channels = 1, 822 822 .buswidth = 8, 823 823 .num_links = 1, 824 - .link_nodes = (struct qcom_icc_node *[]) { &qns_gemnoc_gc }, 824 + .link_nodes = { &qns_gemnoc_gc }, 825 825 }; 826 826 827 827 static struct qcom_icc_node qns_a1noc_snoc = { ··· 829 829 .channels = 1, 830 830 .buswidth = 32, 831 831 .num_links = 1, 832 - .link_nodes = (struct qcom_icc_node *[]) { &qnm_aggre1_noc }, 832 + .link_nodes = { &qnm_aggre1_noc }, 833 833 }; 834 834 835 835 static struct qcom_icc_node qns_a2noc_snoc = { ··· 837 837 .channels = 1, 838 838 .buswidth = 16, 839 839 .num_links = 1, 840 - .link_nodes = (struct qcom_icc_node *[]) { &qnm_aggre2_noc }, 840 + .link_nodes = { &qnm_aggre2_noc }, 841 841 }; 842 842 843 843 static struct qcom_icc_node qup0_core_slave = { ··· 941 941 .channels = 1, 942 942 .buswidth = 4, 943 943 .num_links = 1, 944 - .link_nodes = (struct qcom_icc_node *[]) { &qhm_nsp_noc_config }, 944 + .link_nodes = { &qhm_nsp_noc_config }, 945 945 }; 946 946 947 947 static struct qcom_icc_node qhs_compute1_cfg = { ··· 949 949 .channels = 1, 950 950 .buswidth = 4, 951 951 .num_links = 1, 952 - .link_nodes = (struct qcom_icc_node *[]) { &qhm_nspb_noc_config }, 952 + .link_nodes = { &qhm_nspb_noc_config }, 953 953 }; 954 954 955 955 static struct qcom_icc_node qhs_cpr_cx = { ··· 1089 1089 .channels = 1, 1090 1090 .buswidth = 4, 1091 1091 .num_links = 1, 1092 - .link_nodes = (struct qcom_icc_node *[]) { &qhm_config_noc }, 1092 + .link_nodes = { &qhm_config_noc }, 1093 1093 }; 1094 1094 1095 1095 static struct qcom_icc_node qhs_lpass_throttle_cfg = { ··· 1301 1301 .channels = 1, 1302 1302 .buswidth = 4, 1303 1303 .num_links = 1, 1304 - .link_nodes = (struct qcom_icc_node *[]) { &qnm_cnoc_dc_noc }, 1304 + .link_nodes = { &qnm_cnoc_dc_noc }, 1305 1305 }; 1306 1306 1307 1307 static struct qcom_icc_node qns_gpdsp_noc_cfg = { ··· 1315 1315 .channels = 1, 1316 1316 .buswidth = 4, 1317 1317 .num_links = 1, 1318 - .link_nodes = (struct qcom_icc_node *[]) { &qnm_mnoc_hf_cfg }, 1318 + .link_nodes = { &qnm_mnoc_hf_cfg }, 1319 1319 }; 1320 1320 1321 1321 static struct qcom_icc_node qns_mnoc_sf_cfg = { ··· 1323 1323 .channels = 1, 1324 1324 .buswidth = 4, 1325 1325 .num_links = 1, 1326 - .link_nodes = (struct qcom_icc_node *[]) { &qnm_mnoc_sf_cfg }, 1326 + .link_nodes = { &qnm_mnoc_sf_cfg }, 1327 1327 }; 1328 1328 1329 1329 static struct qcom_icc_node qns_pcie_anoc_cfg = { ··· 1337 1337 .channels = 1, 1338 1338 .buswidth = 4, 1339 1339 .num_links = 1, 1340 - .link_nodes = (struct qcom_icc_node *[]) { &qnm_snoc_cfg }, 1340 + .link_nodes = { &qnm_snoc_cfg }, 1341 1341 }; 1342 1342 1343 1343 static struct qcom_icc_node qxs_boot_imem = { ··· 1393 1393 .channels = 1, 1394 1394 .buswidth = 4, 1395 1395 .num_links = 1, 1396 - .link_nodes = (struct qcom_icc_node *[]) { &qnm_gemnoc_cfg }, 1396 + .link_nodes = { &qnm_gemnoc_cfg }, 1397 1397 }; 1398 1398 1399 1399 static struct qcom_icc_node qns_gem_noc_cnoc = { ··· 1401 1401 .channels = 1, 1402 1402 .buswidth = 16, 1403 1403 .num_links = 1, 1404 - .link_nodes = (struct qcom_icc_node *[]) { &qnm_gemnoc_cnoc }, 1404 + .link_nodes = { &qnm_gemnoc_cnoc }, 1405 1405 }; 1406 1406 1407 1407 static struct qcom_icc_node qns_llcc = { ··· 1409 1409 .channels = 6, 1410 1410 .buswidth = 16, 1411 1411 .num_links = 1, 1412 - .link_nodes = (struct qcom_icc_node *[]) { &llcc_mc }, 1412 + .link_nodes = { &llcc_mc }, 1413 1413 }; 1414 1414 1415 1415 static struct qcom_icc_node qns_pcie = { ··· 1417 1417 .channels = 1, 1418 1418 .buswidth = 16, 1419 1419 .num_links = 1, 1420 - .link_nodes = (struct qcom_icc_node *[]) { &qnm_gemnoc_pcie }, 1420 + .link_nodes = { &qnm_gemnoc_pcie }, 1421 1421 }; 1422 1422 1423 1423 static struct qcom_icc_node srvc_even_gemnoc = { ··· 1449 1449 .channels = 1, 1450 1450 .buswidth = 16, 1451 1451 .num_links = 1, 1452 - .link_nodes = (struct qcom_icc_node *[]) { &qnm_gpdsp_sail }, 1452 + .link_nodes = { &qnm_gpdsp_sail }, 1453 1453 }; 1454 1454 1455 1455 static struct qcom_icc_node qhs_lpass_core = { ··· 1481 1481 .channels = 1, 1482 1482 .buswidth = 16, 1483 1483 .num_links = 1, 1484 - .link_nodes = (struct qcom_icc_node *[]) { &qnm_lpass_noc }, 1484 + .link_nodes = { &qnm_lpass_noc }, 1485 1485 }; 1486 1486 1487 1487 static struct qcom_icc_node srvc_niu_aml_noc = { ··· 1507 1507 .channels = 2, 1508 1508 .buswidth = 32, 1509 1509 .num_links = 1, 1510 - .link_nodes = (struct qcom_icc_node *[]) { &qnm_mnoc_hf }, 1510 + .link_nodes = { &qnm_mnoc_hf }, 1511 1511 }; 1512 1512 1513 1513 static struct qcom_icc_node qns_mem_noc_sf = { ··· 1515 1515 .channels = 2, 1516 1516 .buswidth = 32, 1517 1517 .num_links = 1, 1518 - .link_nodes = (struct qcom_icc_node *[]) { &qnm_mnoc_sf }, 1518 + .link_nodes = { &qnm_mnoc_sf }, 1519 1519 }; 1520 1520 1521 1521 static struct qcom_icc_node srvc_mnoc_hf = { ··· 1541 1541 .channels = 2, 1542 1542 .buswidth = 32, 1543 1543 .num_links = 1, 1544 - .link_nodes = (struct qcom_icc_node *[]) { &qnm_cmpnoc0 }, 1544 + .link_nodes = { &qnm_cmpnoc0 }, 1545 1545 }; 1546 1546 1547 1547 static struct qcom_icc_node service_nsp_noc = { ··· 1555 1555 .channels = 2, 1556 1556 .buswidth = 32, 1557 1557 .num_links = 1, 1558 - .link_nodes = (struct qcom_icc_node *[]) { &qnm_cmpnoc1 }, 1558 + .link_nodes = { &qnm_cmpnoc1 }, 1559 1559 }; 1560 1560 1561 1561 static struct qcom_icc_node qns_nspb_hcp = { ··· 1575 1575 .channels = 1, 1576 1576 .buswidth = 32, 1577 1577 .num_links = 1, 1578 - .link_nodes = (struct qcom_icc_node *[]) { &qnm_pcie }, 1578 + .link_nodes = { &qnm_pcie }, 1579 1579 }; 1580 1580 1581 1581 static struct qcom_icc_node qns_gemnoc_gc = { ··· 1583 1583 .channels = 1, 1584 1584 .buswidth = 8, 1585 1585 .num_links = 1, 1586 - .link_nodes = (struct qcom_icc_node *[]) { &qnm_snoc_gc }, 1586 + .link_nodes = { &qnm_snoc_gc }, 1587 1587 }; 1588 1588 1589 1589 static struct qcom_icc_node qns_gemnoc_sf = { ··· 1591 1591 .channels = 1, 1592 1592 .buswidth = 16, 1593 1593 .num_links = 1, 1594 - .link_nodes = (struct qcom_icc_node *[]) { &qnm_snoc_sf }, 1594 + .link_nodes = { &qnm_snoc_sf }, 1595 1595 }; 1596 1596 1597 1597 static struct qcom_icc_node srvc_snoc = {