Commit 8b1704bd authored by Julia Lawall's avatar Julia Lawall Committed by Linus Walleij

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: default avatarJulia Lawall <Julia.Lawall@inria.fr>

Link: https://lore.kernel.org/r/1577864614-5543-15-git-send-email-Julia.Lawall@inria.frSigned-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent a2800cdb
...@@ -439,7 +439,7 @@ static const struct pinconf_ops pm8xxx_pinconf_ops = { ...@@ -439,7 +439,7 @@ static const struct pinconf_ops pm8xxx_pinconf_ops = {
.pin_config_group_set = pm8xxx_pin_config_set, .pin_config_group_set = pm8xxx_pin_config_set,
}; };
static struct pinctrl_desc pm8xxx_pinctrl_desc = { static const struct pinctrl_desc pm8xxx_pinctrl_desc = {
.name = "pm8xxx_gpio", .name = "pm8xxx_gpio",
.pctlops = &pm8xxx_pinctrl_ops, .pctlops = &pm8xxx_pinctrl_ops,
.pmxops = &pm8xxx_pinmux_ops, .pmxops = &pm8xxx_pinmux_ops,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment