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

pinctrl: qcom: ssbi-gpio: constify copied structure

The pm8xxx_pinctrl_desc structure is only copied into another
structure, so make it const.

The opportunity for this change was found using Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>

Link: https://lore.kernel.org/r/1577864614-5543-15-git-send-email-Julia.Lawall@inria.fr
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Julia Lawall and committed by
Linus Walleij
8b1704bd a2800cdb

+1 -1
+1 -1
drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c
··· 439 439 .pin_config_group_set = pm8xxx_pin_config_set, 440 440 }; 441 441 442 - static struct pinctrl_desc pm8xxx_pinctrl_desc = { 442 + static const struct pinctrl_desc pm8xxx_pinctrl_desc = { 443 443 .name = "pm8xxx_gpio", 444 444 .pctlops = &pm8xxx_pinctrl_ops, 445 445 .pmxops = &pm8xxx_pinmux_ops,