]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
airoha: fix pinctrl driver function bug
authorChukun Pan <amadeus@jmu.edu.cn>
Fri, 26 Sep 2025 15:02:15 +0000 (23:02 +0800)
committerChristian Marangi <ansuelsmth@gmail.com>
Mon, 29 Sep 2025 10:05:09 +0000 (12:05 +0200)
The pinctrl driver for airoha was expecting a function name that was
not a string, but was passed one. Removing #string fixed this issue.

Fixes: c5b12fc ("airoha: Introduce support for Airoha AN7583 SoC")
Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
Link: https://github.com/openwrt/openwrt/pull/20190
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
target/linux/airoha/patches-6.12/120-02-pinctrl-mediatek-airoha-generalize-pins-group-functi.patch

index 61989bc00bcbb3ad54ac25c59293fabc0984bbb1..b2b7e14eebe79d4339ebe83d5dad6d0d1ae76b57 100644 (file)
@@ -32,9 +32,10 @@ Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
        {                                                               \
                .desc = {                                               \
                        .func = {                                       \
-                               .name = #id,                            \
+-                              .name = #id,                            \
 -                              .groups = id##_groups,                  \
 -                              .ngroups = ARRAY_SIZE(id##_groups),     \
++                              .name = id,                             \
 +                              .groups = table##_groups,               \
 +                              .ngroups = ARRAY_SIZE(table##_groups),  \
                        }                                               \