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

pinctrl: mediatek: 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-3-andriy.shevchenko@linux.intel.comSigned-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 383da0c7
...@@ -37,12 +37,12 @@ ...@@ -37,12 +37,12 @@
.funcs = NULL, \ .funcs = NULL, \
} }
#define PINCTRL_PIN_GROUP(name, id) \ #define PINCTRL_PIN_GROUP(_name_, id) \
{ \ { \
name, \ .name = _name_, \
id##_pins, \ .pins = id##_pins, \
ARRAY_SIZE(id##_pins), \ .num_pins = ARRAY_SIZE(id##_pins), \
id##_funcs, \ .data = id##_funcs, \
} }
int mtk_moore_pinctrl_probe(struct platform_device *pdev, int mtk_moore_pinctrl_probe(struct platform_device *pdev,
......
...@@ -49,12 +49,12 @@ ...@@ -49,12 +49,12 @@
__VA_ARGS__, { } }, \ __VA_ARGS__, { } }, \
} }
#define PINCTRL_PIN_GROUP(name, id) \ #define PINCTRL_PIN_GROUP(_name_, id) \
{ \ { \
name, \ .name = _name_, \
id##_pins, \ .pins = id##_pins, \
ARRAY_SIZE(id##_pins), \ .num_pins = ARRAY_SIZE(id##_pins), \
id##_funcs, \ .data = id##_funcs, \
} }
int mtk_paris_pinctrl_probe(struct platform_device *pdev); int mtk_paris_pinctrl_probe(struct platform_device *pdev);
......
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