Skip to content

Commit 84c580e

Browse files
claudiubezneageertu
authored andcommitted
pinctrl: renesas: rzg2l: Make struct rzg2l_pinctrl_data::dedicated_pins constant
struct rzg2l_pinctrl_data::dedicated_pins is constant thus mark it so. Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://lore.kernel.org/r/20230912045157.177966-29-claudiu.beznea.uj@bp.renesas.com Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
1 parent 21c1142 commit 84c580e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/pinctrl/renesas/pinctrl-rzg2l.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ struct rzg2l_pinctrl_data {
133133
const char * const *port_pins;
134134
const u32 *port_pin_configs;
135135
unsigned int n_ports;
136-
struct rzg2l_dedicated_configs *dedicated_pins;
136+
const struct rzg2l_dedicated_configs *dedicated_pins;
137137
unsigned int n_port_pins;
138138
unsigned int n_dedicated_pins;
139139
};
@@ -1059,7 +1059,7 @@ static const u32 r9a07g043_gpio_configs[] = {
10591059
RZG2L_GPIO_PORT_PACK(6, 0x22, RZG2L_MPXED_PIN_FUNCS),
10601060
};
10611061

1062-
static struct {
1062+
static const struct {
10631063
struct rzg2l_dedicated_configs common[35];
10641064
struct rzg2l_dedicated_configs rzg2l_pins[7];
10651065
} rzg2l_dedicated_pins = {

0 commit comments

Comments
 (0)