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

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

This pinmux_ops structure is only stored in the const pmxops field
of a pinctrl_desc structure. Make the pinmux_ops structure 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
71ccb82b baf918c4

+1 -1
+1 -1
drivers/pinctrl/sirf/pinctrl-atlas7.c
··· 5261 5261 return 0; 5262 5262 } 5263 5263 5264 - static struct pinmux_ops atlas7_pinmux_ops = { 5264 + static const struct pinmux_ops atlas7_pinmux_ops = { 5265 5265 .get_functions_count = atlas7_pmx_get_funcs_count, 5266 5266 .get_function_name = atlas7_pmx_get_func_name, 5267 5267 .get_function_groups = atlas7_pmx_get_func_groups,