pinctrl: use "const struct ..." rather than "struct ... const"
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 22 May 2015 06:25:50 +0000 (15:25 +0900)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 1 Jun 2015 13:48:12 +0000 (15:48 +0200)
Only this member, pins, is defined as "struct ... const *", but the
others in this struct, pinlops, pmxops, confops, etc. are defined as
"const struct ... *".

Swap the "struct pinctrl_pin_desc" and "const" for consistency.

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

index 66e4697516dea286fe403cff2fa0074c053824ba..9ba59fcba549400769e5dc574631618113666ac4 100644 (file)
@@ -127,7 +127,7 @@ struct pinctrl_ops {
  */
 struct pinctrl_desc {
        const char *name;
-       struct pinctrl_pin_desc const *pins;
+       const struct pinctrl_pin_desc *pins;
        unsigned int npins;
        const struct pinctrl_ops *pctlops;
        const struct pinmux_ops *pmxops;