Skip to content

Commit 8b1704b

Browse files
JuliaLawalllinusw
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Linus Walleij <[email protected]>
1 parent a2800cd commit 8b1704b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ static const struct pinconf_ops pm8xxx_pinconf_ops = {
439439
.pin_config_group_set = pm8xxx_pin_config_set,
440440
};
441441

442-
static struct pinctrl_desc pm8xxx_pinctrl_desc = {
442+
static const struct pinctrl_desc pm8xxx_pinctrl_desc = {
443443
.name = "pm8xxx_gpio",
444444
.pctlops = &pm8xxx_pinctrl_ops,
445445
.pmxops = &pm8xxx_pinmux_ops,

0 commit comments

Comments
 (0)