diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2022-03-23 02:12:55 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2022-03-24 22:10:31 +0300 |
commit | 6ef00b42f9019143e4534738f83af8e663bf7695 (patch) | |
tree | afd66214b5090187df0ba33968afa15237ba7288 /drivers/pinctrl/nuvoton/pinctrl-wpcm450.c | |
parent | 042a6362ce4dae201c9aa345ec2acce659edddca (diff) | |
download | linux-6ef00b42f9019143e4534738f83af8e663bf7695.tar.xz |
pinctrl: nuvoton: Fix sparse warning
Sparse complains:
drivers/pinctrl/nuvoton/pinctrl-wpcm450.c:626:9:
sparse: sparse: obsolete array initializer, use C99 syntax
This is because no equal sign is between the array index
and the assignments, in the macro.
Fix it up.
Reviewed-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/nuvoton/pinctrl-wpcm450.c')
-rw-r--r-- | drivers/pinctrl/nuvoton/pinctrl-wpcm450.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pinctrl/nuvoton/pinctrl-wpcm450.c b/drivers/pinctrl/nuvoton/pinctrl-wpcm450.c index 661aa963e3fc..1402840af11f 100644 --- a/drivers/pinctrl/nuvoton/pinctrl-wpcm450.c +++ b/drivers/pinctrl/nuvoton/pinctrl-wpcm450.c @@ -613,8 +613,8 @@ static struct wpcm450_func wpcm450_funcs[] = { }; #define WPCM450_PINCFG(a, b, c, d, e, f, g) \ - [a] { .fn0 = fn_ ## b, .reg0 = WPCM450_GCR_ ## c, .bit0 = d, \ - .fn1 = fn_ ## e, .reg1 = WPCM450_GCR_ ## f, .bit1 = g } + [a] = { .fn0 = fn_ ## b, .reg0 = WPCM450_GCR_ ## c, .bit0 = d, \ + .fn1 = fn_ ## e, .reg1 = WPCM450_GCR_ ## f, .bit1 = g } struct wpcm450_pincfg { int fn0, reg0, bit0; |