We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb5eace commit b0f24e0Copy full SHA for b0f24e0
drivers/pinctrl/pinctrl-ingenic.c
@@ -82,16 +82,21 @@
82
#define PINS_PER_GPIO_CHIP 32
83
#define JZ4730_PINS_PER_PAIRED_REG 16
84
85
-#define INGENIC_PIN_GROUP_FUNCS(name, id, funcs) \
86
- { \
87
- name, \
88
- id##_pins, \
89
- ARRAY_SIZE(id##_pins), \
90
- funcs, \
+#define INGENIC_PIN_GROUP_FUNCS(_name_, id, funcs) \
+ { \
+ .name = _name_, \
+ .pins = id##_pins, \
+ .num_pins = ARRAY_SIZE(id##_pins), \
+ .data = funcs, \
91
}
92
93
-#define INGENIC_PIN_GROUP(name, id, func) \
94
- INGENIC_PIN_GROUP_FUNCS(name, id, (void *)(func))
+#define INGENIC_PIN_GROUP(_name_, id, func) \
95
96
97
98
+ .data = (void *)func, \
99
+ }
100
101
enum jz_version {
102
ID_JZ4730,
0 commit comments