Commit b0f24e02 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Linus Walleij

pinctrl: ingenic: Use C99 initializers in PINCTRL_PIN_GROUP()

For the better flexibility use C99 initializers in PINCTRL_PIN_GROUP().
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20231211190321.307330-4-andriy.shevchenko@linux.intel.comSigned-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent bb5eace1
......@@ -82,16 +82,21 @@
#define PINS_PER_GPIO_CHIP 32
#define JZ4730_PINS_PER_PAIRED_REG 16
#define INGENIC_PIN_GROUP_FUNCS(name, id, funcs) \
{ \
name, \
id##_pins, \
ARRAY_SIZE(id##_pins), \
funcs, \
#define INGENIC_PIN_GROUP_FUNCS(_name_, id, funcs) \
{ \
.name = _name_, \
.pins = id##_pins, \
.num_pins = ARRAY_SIZE(id##_pins), \
.data = funcs, \
}
#define INGENIC_PIN_GROUP(name, id, func) \
INGENIC_PIN_GROUP_FUNCS(name, id, (void *)(func))
#define INGENIC_PIN_GROUP(_name_, id, func) \
{ \
.name = _name_, \
.pins = id##_pins, \
.num_pins = ARRAY_SIZE(id##_pins), \
.data = (void *)func, \
}
enum jz_version {
ID_JZ4730,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment