]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
gpio: aspeed-sgpio: Remove unused bank name field
authorBilly Tsai <billy_tsai@aspeedtech.com>
Fri, 23 Jan 2026 09:26:27 +0000 (17:26 +0800)
committerBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Tue, 27 Jan 2026 10:17:25 +0000 (11:17 +0100)
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>
drivers/gpio/gpio-aspeed-sgpio.c

index 318cd0e397416854a477ecf6766d5a6eb1210126..a96ed6d8a55da4e3c311a3e497235f2949c11ad0 100644 (file)
@@ -43,7 +43,6 @@ struct aspeed_sgpio_bank {
        u16    rdata_reg;
        u16    irq_regs;
        u16    tolerance_regs;
-       const char  names[4][3];
 };
 
 /*
@@ -59,28 +58,24 @@ static const struct aspeed_sgpio_bank aspeed_sgpio_banks[] = {
                .rdata_reg = 0x0070,
                .irq_regs = 0x0004,
                .tolerance_regs = 0x0018,
-               .names = { "A", "B", "C", "D" },
        },
        {
                .val_regs = 0x001C,
                .rdata_reg = 0x0074,
                .irq_regs = 0x0020,
                .tolerance_regs = 0x0034,
-               .names = { "E", "F", "G", "H" },
        },
        {
                .val_regs = 0x0038,
                .rdata_reg = 0x0078,
                .irq_regs = 0x003C,
                .tolerance_regs = 0x0050,
-               .names = { "I", "J", "K", "L" },
        },
        {
                .val_regs = 0x0090,
                .rdata_reg = 0x007C,
                .irq_regs = 0x0094,
                .tolerance_regs = 0x00A8,
-               .names = { "M", "N", "O", "P" },
        },
 };