mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 16:54:20 +08:00
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>
This commit is contained in:
parent
042a6362ce
commit
6ef00b42f9
@ -895,7 +895,7 @@ static struct npcm7xx_func npcm7xx_funcs[] = {
|
||||
};
|
||||
|
||||
#define NPCM7XX_PINCFG(a, b, c, d, e, f, g, h, i, j, k) \
|
||||
[a] { .fn0 = fn_ ## b, .reg0 = NPCM7XX_GCR_ ## c, .bit0 = d, \
|
||||
[a] = { .fn0 = fn_ ## b, .reg0 = NPCM7XX_GCR_ ## c, .bit0 = d, \
|
||||
.fn1 = fn_ ## e, .reg1 = NPCM7XX_GCR_ ## f, .bit1 = g, \
|
||||
.fn2 = fn_ ## h, .reg2 = NPCM7XX_GCR_ ## i, .bit2 = j, \
|
||||
.flag = k }
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user