pinctrl: rza1: constify pinconf_ops, pinctrl_ops, and pinmux_ops structures
authorJulia Lawall <Julia.Lawall@lip6.fr>
Thu, 10 Aug 2017 10:06:24 +0000 (12:06 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 22 Aug 2017 12:41:23 +0000 (14:41 +0200)
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>
drivers/pinctrl/pinctrl-rza1.c

index 7e30134b3d18603494e02fb44e0e92dff85b9061..f75d6995c68494fadd72fbe71583df87e51dac60 100644 (file)
@@ -1026,7 +1026,7 @@ static int rza1_set_mux(struct pinctrl_dev *pctldev, unsigned int selector,
        return 0;
 }
 
-static struct pinmux_ops rza1_pinmux_ops = {
+static const struct pinmux_ops rza1_pinmux_ops = {
        .get_functions_count    = pinmux_generic_get_function_count,
        .get_function_name      = pinmux_generic_get_function_name,
        .get_function_groups    = pinmux_generic_get_function_groups,