mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 15:12:13 +02:00
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:
parent
bb5eace156
commit
b0f24e021d
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user