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

pinctrl: ssbi-mpp: 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-9-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
a2800cdb d5d3594d

+1 -1
+1 -1
drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c
··· 430 430 .pin_config_group_set = pm8xxx_pin_config_set, 431 431 }; 432 432 433 - static struct pinctrl_desc pm8xxx_pinctrl_desc = { 433 + static const struct pinctrl_desc pm8xxx_pinctrl_desc = { 434 434 .name = "pm8xxx_mpp", 435 435 .pctlops = &pm8xxx_pinctrl_ops, 436 436 .pmxops = &pm8xxx_pinmux_ops,