From: Quentin Schulz Date: Fri, 31 Jan 2025 10:31:31 +0000 (+0100) Subject: pinctrl: rockchip: constify rockchip_pin_ctrl for RK3036 X-Git-Tag: v2025.07-rc2~17^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91b39dd208d76a865bd4e2ce83099c9478599331;p=pandora-u-boot.git pinctrl: rockchip: constify rockchip_pin_ctrl for RK3036 There's no need to modify private data from the controller, so let's make that struct const. Signed-off-by: Quentin Schulz Reviewed-by: Kever Yang --- diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3036.c b/drivers/pinctrl/rockchip/pinctrl-rk3036.c index b14386ccd93..8d0c0e0b655 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3036.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3036.c @@ -80,7 +80,7 @@ static struct rockchip_pin_bank rk3036_pin_banks[] = { PIN_BANK(2, 32, "gpio2"), }; -static struct rockchip_pin_ctrl rk3036_pin_ctrl = { +static const struct rockchip_pin_ctrl rk3036_pin_ctrl = { .pin_banks = rk3036_pin_banks, .nr_banks = ARRAY_SIZE(rk3036_pin_banks), .grf_mux_offset = 0xa8,