pinctrl: ingenic: Use C99 initializers in PINCTRL_PIN_GROUP()

For the better flexibility use C99 initializers in PINCTRL_PIN_GROUP().

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20231211190321.307330-4-andriy.shevchenko@linux.intel.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
Andy Shevchenko 2023-12-11 20:57:56 +02:00 committed by Linus Walleij
parent bb5eace156
commit b0f24e021d

View File

@ -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,