Skip to content

Commit 5928e0d

Browse files
billy-tsaiBartosz Golaszewski
authored andcommitted
gpio: aspeed-sgpio: Remove unused bank name field
Drops the names array from the bank struct and its initializers, as it is unused in the driver. Reviewed-by: Linus Walleij <linusw@kernel.org> Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com> Link: https://lore.kernel.org/r/20260123-upstream_sgpio-v2-2-69cfd1631400@aspeedtech.com Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
1 parent e18533b commit 5928e0d

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

drivers/gpio/gpio-aspeed-sgpio.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ struct aspeed_sgpio_bank {
4343
u16 rdata_reg;
4444
u16 irq_regs;
4545
u16 tolerance_regs;
46-
const char names[4][3];
4746
};
4847

4948
/*
@@ -59,28 +58,24 @@ static const struct aspeed_sgpio_bank aspeed_sgpio_banks[] = {
5958
.rdata_reg = 0x0070,
6059
.irq_regs = 0x0004,
6160
.tolerance_regs = 0x0018,
62-
.names = { "A", "B", "C", "D" },
6361
},
6462
{
6563
.val_regs = 0x001C,
6664
.rdata_reg = 0x0074,
6765
.irq_regs = 0x0020,
6866
.tolerance_regs = 0x0034,
69-
.names = { "E", "F", "G", "H" },
7067
},
7168
{
7269
.val_regs = 0x0038,
7370
.rdata_reg = 0x0078,
7471
.irq_regs = 0x003C,
7572
.tolerance_regs = 0x0050,
76-
.names = { "I", "J", "K", "L" },
7773
},
7874
{
7975
.val_regs = 0x0090,
8076
.rdata_reg = 0x007C,
8177
.irq_regs = 0x0094,
8278
.tolerance_regs = 0x00A8,
83-
.names = { "M", "N", "O", "P" },
8479
},
8580
};
8681

0 commit comments

Comments
 (0)