pinctrl: remove useless const qualifier
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 22 May 2015 06:19:37 +0000 (15:19 +0900)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 1 Jun 2015 13:47:20 +0000 (15:47 +0200)
This "const" claims the get_function_groups callback never
changes the given num_groups pointer.  It is always true
in C language, so not worth mentioning.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
include/linux/pinctrl/pinmux.h

index d3740fa7073f9a9d8c73a406789b9371d868ff25..ace60d775b2012be4320c2cc4f0d14079cc27608 100644 (file)
@@ -69,7 +69,7 @@ struct pinmux_ops {
        int (*get_function_groups) (struct pinctrl_dev *pctldev,
                                  unsigned selector,
                                  const char * const **groups,
-                                 unsigned * const num_groups);
+                                 unsigned *num_groups);
        int (*set_mux) (struct pinctrl_dev *pctldev, unsigned func_selector,
                        unsigned group_selector);
        int (*gpio_request_enable) (struct pinctrl_dev *pctldev,