Skip to content

Commit a2800cd

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ static const struct pinconf_ops pm8xxx_pinconf_ops = {
430430
.pin_config_group_set = pm8xxx_pin_config_set,
431431
};
432432

433-
static struct pinctrl_desc pm8xxx_pinctrl_desc = {
433+
static const struct pinctrl_desc pm8xxx_pinctrl_desc = {
434434
.name = "pm8xxx_mpp",
435435
.pctlops = &pm8xxx_pinctrl_ops,
436436
.pmxops = &pm8xxx_pinmux_ops,

0 commit comments

Comments
 (0)