mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 22:26:55 +00:00
pinctrl: mediatek: 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-3-andriy.shevchenko@linux.intel.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
383da0c7f2
commit
bb5eace156
2 changed files with 12 additions and 12 deletions
|
@ -37,12 +37,12 @@
|
|||
.funcs = NULL, \
|
||||
}
|
||||
|
||||
#define PINCTRL_PIN_GROUP(name, id) \
|
||||
{ \
|
||||
name, \
|
||||
id##_pins, \
|
||||
ARRAY_SIZE(id##_pins), \
|
||||
id##_funcs, \
|
||||
#define PINCTRL_PIN_GROUP(_name_, id) \
|
||||
{ \
|
||||
.name = _name_, \
|
||||
.pins = id##_pins, \
|
||||
.num_pins = ARRAY_SIZE(id##_pins), \
|
||||
.data = id##_funcs, \
|
||||
}
|
||||
|
||||
int mtk_moore_pinctrl_probe(struct platform_device *pdev,
|
||||
|
|
|
@ -49,12 +49,12 @@
|
|||
__VA_ARGS__, { } }, \
|
||||
}
|
||||
|
||||
#define PINCTRL_PIN_GROUP(name, id) \
|
||||
{ \
|
||||
name, \
|
||||
id##_pins, \
|
||||
ARRAY_SIZE(id##_pins), \
|
||||
id##_funcs, \
|
||||
#define PINCTRL_PIN_GROUP(_name_, id) \
|
||||
{ \
|
||||
.name = _name_, \
|
||||
.pins = id##_pins, \
|
||||
.num_pins = ARRAY_SIZE(id##_pins), \
|
||||
.data = id##_funcs, \
|
||||
}
|
||||
|
||||
int mtk_paris_pinctrl_probe(struct platform_device *pdev);
|
||||
|
|
Loading…
Reference in a new issue