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

pinctrl: sirf: constify pinconf_ops, pinctrl_ops, and pinmux_ops structures

These structures are only stored in fields of a pinctrl_desc
structure (pctlops and pmxops) that are const. Make the
structures const as well.

Done with the help of Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Julia Lawall and committed by
Linus Walleij
ecdc722f 71ccb82b

+2 -2
+2 -2
drivers/pinctrl/sirf/pinctrl-sirf.c
··· 133 133 kfree(map); 134 134 } 135 135 136 - static struct pinctrl_ops sirfsoc_pctrl_ops = { 136 + static const struct pinctrl_ops sirfsoc_pctrl_ops = { 137 137 .get_groups_count = sirfsoc_get_groups_count, 138 138 .get_group_name = sirfsoc_get_group_name, 139 139 .get_group_pins = sirfsoc_get_group_pins, ··· 229 229 return 0; 230 230 } 231 231 232 - static struct pinmux_ops sirfsoc_pinmux_ops = { 232 + static const struct pinmux_ops sirfsoc_pinmux_ops = { 233 233 .set_mux = sirfsoc_pinmux_set_mux, 234 234 .get_functions_count = sirfsoc_pinmux_get_funcs_count, 235 235 .get_function_name = sirfsoc_pinmux_get_func_name,