Skip to content

Commit b3da97e

Browse files
masahir0yLinus Walleij
authored andcommitted
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>
1 parent 5fbf65d commit b3da97e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎include/linux/pinctrl/pinctrl.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ struct pinctrl_ops {
127127
*/
128128
struct pinctrl_desc {
129129
const char *name;
130-
struct pinctrl_pin_desc const *pins;
130+
const struct pinctrl_pin_desc *pins;
131131
unsigned int npins;
132132
const struct pinctrl_ops *pctlops;
133133
const struct pinmux_ops *pmxops;

0 commit comments

Comments
 (0)