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

Configure Feed

Select the types of activity you want to include in your feed.

pinctrl: airoha: fix pinctrl function mismatch issue

The blamed commit made the following changes:

-#define PINCTRL_FUNC_DESC(id)...
- .desc = PINCTRL_PINFUNCTION(#id, ...
+#define PINCTRL_FUNC_DESC(id, table)...
+ .desc = PINCTRL_PINFUNCTION(#id, ...

- PINCTRL_FUNC_DESC(pon)...
+ PINCTRL_FUNC_DESC("pon", pon)...

It's clear that the id of funcs doesn't match the definition.
Remove redundant #string from the definition to fix this issue:
pinctrl-airoha ...: invalid function mdio in map table

Fixes: 4043b0c45f85 ("pinctrl: airoha: generalize pins/group/function/confs handling")
Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
Acked-by: Christian Marangi <ansuelsmth@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Chukun Pan and committed by
Linus Walleij
f2bd5a0f ec8e1f41

+1 -1
+1 -1
drivers/pinctrl/mediatek/pinctrl-airoha.c
··· 35 35 36 36 #define PINCTRL_FUNC_DESC(id, table) \ 37 37 { \ 38 - .desc = PINCTRL_PINFUNCTION(#id, table##_groups, \ 38 + .desc = PINCTRL_PINFUNCTION(id, table##_groups, \ 39 39 ARRAY_SIZE(table##_groups)),\ 40 40 .groups = table##_func_group, \ 41 41 .group_size = ARRAY_SIZE(table##_func_group), \