[PATCH v3 09/15] pinctrl: constify pinmux_generic_get_function()
Geert Uytterhoeven
geert at linux-m68k.org
Wed Jul 30 07:53:57 PDT 2025
On Thu, 24 Jul 2025 at 11:24, Bartosz Golaszewski <brgl at bgdev.pl> wrote:
> From: Bartosz Golaszewski <bartosz.golaszewski at linaro.org>
>
> With all users of struct function_desc limited to only accessing it using
> the dedicated function and never modifying it, we can now constify the
> return value of pinmux_generic_get_function() treewide.
>
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski at linaro.org>
> drivers/pinctrl/renesas/pinctrl-rza1.c | 2 +-
> drivers/pinctrl/renesas/pinctrl-rza2.c | 2 +-
> drivers/pinctrl/renesas/pinctrl-rzg2l.c | 2 +-
> drivers/pinctrl/renesas/pinctrl-rzv2m.c | 2 +-
Reviewed-by: Geert Uytterhoeven <geert+renesas at glider.be> # renesas
Acked-by: Geert Uytterhoeven <geert+renesas at glider.be> # renesas
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
More information about the linux-arm-kernel
mailing list