@@ -352,7 +352,7 @@ static const unsigned int tdmb_dout2_pins[] = {GPIOA_12};
352352static const unsigned int tdmb_din3_pins [] = {GPIOA_13 };
353353static const unsigned int tdmb_dout3_pins [] = {GPIOA_13 };
354354
355- static struct meson_pmx_group meson_axg_periphs_groups [] = {
355+ static const struct meson_pmx_group meson_axg_periphs_groups [] = {
356356 GPIO_GROUP (GPIOZ_0 ),
357357 GPIO_GROUP (GPIOZ_1 ),
358358 GPIO_GROUP (GPIOZ_2 ),
@@ -675,7 +675,7 @@ static const unsigned int jtag_ao_tms_pins[] = {GPIOAO_7};
675675/* gen_clk */
676676static const unsigned int gen_clk_ee_pins [] = {GPIOAO_13 };
677677
678- static struct meson_pmx_group meson_axg_aobus_groups [] = {
678+ static const struct meson_pmx_group meson_axg_aobus_groups [] = {
679679 GPIO_GROUP (GPIOAO_0 ),
680680 GPIO_GROUP (GPIOAO_1 ),
681681 GPIO_GROUP (GPIOAO_2 ),
@@ -955,7 +955,7 @@ static const char * const gen_clk_ee_groups[] = {
955955 "gen_clk_ee" ,
956956};
957957
958- static struct meson_pmx_func meson_axg_periphs_functions [] = {
958+ static const struct meson_pmx_func meson_axg_periphs_functions [] = {
959959 FUNCTION (gpio_periphs ),
960960 FUNCTION (emmc ),
961961 FUNCTION (nor ),
@@ -987,7 +987,7 @@ static struct meson_pmx_func meson_axg_periphs_functions[] = {
987987 FUNCTION (tdmc ),
988988};
989989
990- static struct meson_pmx_func meson_axg_aobus_functions [] = {
990+ static const struct meson_pmx_func meson_axg_aobus_functions [] = {
991991 FUNCTION (gpio_aobus ),
992992 FUNCTION (uart_ao_a ),
993993 FUNCTION (uart_ao_b ),
@@ -1003,7 +1003,7 @@ static struct meson_pmx_func meson_axg_aobus_functions[] = {
10031003 FUNCTION (gen_clk_ee ),
10041004};
10051005
1006- static struct meson_bank meson_axg_periphs_banks [] = {
1006+ static const struct meson_bank meson_axg_periphs_banks [] = {
10071007 /* name first last irq pullen pull dir out in */
10081008 BANK ("Z" , GPIOZ_0 , GPIOZ_10 , 14 , 24 , 3 , 0 , 3 , 0 , 9 , 0 , 10 , 0 , 11 , 0 ),
10091009 BANK ("BOOT" , BOOT_0 , BOOT_14 , 25 , 39 , 4 , 0 , 4 , 0 , 12 , 0 , 13 , 0 , 14 , 0 ),
@@ -1012,12 +1012,12 @@ static struct meson_bank meson_axg_periphs_banks[] = {
10121012 BANK ("Y" , GPIOY_0 , GPIOY_15 , 84 , 99 , 1 , 0 , 1 , 0 , 3 , 0 , 4 , 0 , 5 , 0 ),
10131013};
10141014
1015- static struct meson_bank meson_axg_aobus_banks [] = {
1015+ static const struct meson_bank meson_axg_aobus_banks [] = {
10161016 /* name first last irq pullen pull dir out in */
10171017 BANK ("AO" , GPIOAO_0 , GPIOAO_13 , 0 , 13 , 0 , 16 , 0 , 0 , 0 , 0 , 0 , 16 , 1 , 0 ),
10181018};
10191019
1020- static struct meson_pmx_bank meson_axg_periphs_pmx_banks [] = {
1020+ static const struct meson_pmx_bank meson_axg_periphs_pmx_banks [] = {
10211021 /* name first lask reg offset */
10221022 BANK_PMX ("Z" , GPIOZ_0 , GPIOZ_10 , 0x2 , 0 ),
10231023 BANK_PMX ("BOOT" , BOOT_0 , BOOT_14 , 0x0 , 0 ),
@@ -1026,21 +1026,21 @@ static struct meson_pmx_bank meson_axg_periphs_pmx_banks[] = {
10261026 BANK_PMX ("Y" , GPIOY_0 , GPIOY_15 , 0x8 , 0 ),
10271027};
10281028
1029- static struct meson_axg_pmx_data meson_axg_periphs_pmx_banks_data = {
1029+ static const struct meson_axg_pmx_data meson_axg_periphs_pmx_banks_data = {
10301030 .pmx_banks = meson_axg_periphs_pmx_banks ,
10311031 .num_pmx_banks = ARRAY_SIZE (meson_axg_periphs_pmx_banks ),
10321032};
10331033
1034- static struct meson_pmx_bank meson_axg_aobus_pmx_banks [] = {
1034+ static const struct meson_pmx_bank meson_axg_aobus_pmx_banks [] = {
10351035 BANK_PMX ("AO" , GPIOAO_0 , GPIOAO_13 , 0x0 , 0 ),
10361036};
10371037
1038- static struct meson_axg_pmx_data meson_axg_aobus_pmx_banks_data = {
1038+ static const struct meson_axg_pmx_data meson_axg_aobus_pmx_banks_data = {
10391039 .pmx_banks = meson_axg_aobus_pmx_banks ,
10401040 .num_pmx_banks = ARRAY_SIZE (meson_axg_aobus_pmx_banks ),
10411041};
10421042
1043- static struct meson_pinctrl_data meson_axg_periphs_pinctrl_data = {
1043+ static const struct meson_pinctrl_data meson_axg_periphs_pinctrl_data = {
10441044 .name = "periphs-banks" ,
10451045 .pins = meson_axg_periphs_pins ,
10461046 .groups = meson_axg_periphs_groups ,
@@ -1054,7 +1054,7 @@ static struct meson_pinctrl_data meson_axg_periphs_pinctrl_data = {
10541054 .pmx_data = & meson_axg_periphs_pmx_banks_data ,
10551055};
10561056
1057- static struct meson_pinctrl_data meson_axg_aobus_pinctrl_data = {
1057+ static const struct meson_pinctrl_data meson_axg_aobus_pinctrl_data = {
10581058 .name = "aobus-banks" ,
10591059 .pins = meson_axg_aobus_pins ,
10601060 .groups = meson_axg_aobus_groups ,
0 commit comments