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

pinctrl: use "const struct ..." rather than "struct ... const"

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>

authored by

Masahiro Yamada and committed by
Linus Walleij
b3da97ee 5fbf65d5

+1 -1
+1 -1
include/linux/pinctrl/pinctrl.h
··· 127 127 */ 128 128 struct pinctrl_desc { 129 129 const char *name; 130 - struct pinctrl_pin_desc const *pins; 130 + const struct pinctrl_pin_desc *pins; 131 131 unsigned int npins; 132 132 const struct pinctrl_ops *pctlops; 133 133 const struct pinmux_ops *pmxops;