[PATCH 18/22] smsc: Replace comments with C99 initializers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: andrew@xxxxxxx
- Subject: [PATCH 18/22] smsc: Replace comments with C99 initializers
- From: Benjamin Stürz <benni@xxxxxxxxxx>
- Date: Sat, 26 Mar 2022 17:59:05 +0100
- Cc: sebastian.hesselbarth@xxxxxxxxx, gregory.clement@xxxxxxxxxxx, linux@xxxxxxxxxxxxxxx, linux@xxxxxxxxxxxx, krzk@xxxxxxxxxx, alim.akhtar@xxxxxxxxxxx, tglx@xxxxxxxxxxxxx, mingo@xxxxxxxxxx, bp@xxxxxxxxx, dave.hansen@xxxxxxxxxxxxxxx, hpa@xxxxxxxxx, robert.moore@xxxxxxxxx, rafael.j.wysocki@xxxxxxxxx, lenb@xxxxxxxxxx, 3chas3@xxxxxxxxx, laforge@xxxxxxxxxxxx, arnd@xxxxxxxx, gregkh@xxxxxxxxxxxxxxxxxxx, mchehab@xxxxxxxxxx, tony.luck@xxxxxxxxx, james.morse@xxxxxxx, rric@xxxxxxxxxx, linus.walleij@xxxxxxxxxx, brgl@xxxxxxxx, mike.marciniszyn@xxxxxxxxxxxxxxxxxxxx, dennis.dalessandro@xxxxxxxxxxxxxxxxxxxx, jgg@xxxxxxxx, pali@xxxxxxxxxx, dmitry.torokhov@xxxxxxxxx, isdn@xxxxxxxxxxxxxx, benh@xxxxxxxxxxxxxxxxxxx, fbarrat@xxxxxxxxxxxxx, ajd@xxxxxxxxxxxxx, davem@xxxxxxxxxxxxx, kuba@xxxxxxxxxx, pabeni@xxxxxxxxxx, nico@xxxxxxxxxxx, loic.poulain@xxxxxxxxxx, kvalo@xxxxxxxxxx, pkshih@xxxxxxxxxxx, bhelgaas@xxxxxxxxxx, linux-arm-kernel@xxxxxxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, linux-samsung-soc@xxxxxxxxxxxxxxx, linux-ia64@xxxxxxxxxxxxxxx, linux-acpi@xxxxxxxxxxxxxxx, devel@xxxxxxxxxx, linux-atm-general@xxxxxxxxxxxxxxxxxxxxx, netdev@xxxxxxxxxxxxxxx, linux-edac@xxxxxxxxxxxxxxx, linux-gpio@xxxxxxxxxxxxxxx, linux-rdma@xxxxxxxxxxxxxxx, linux-input@xxxxxxxxxxxxxxx, linuxppc-dev@xxxxxxxxxxxxxxxx, linux-media@xxxxxxxxxxxxxxx, wcn36xx@xxxxxxxxxxxxxxxxxxx, linux-wireless@xxxxxxxxxxxxxxx, linux-pci@xxxxxxxxxxxxxxx, Benjamin Stürz <benni@xxxxxxxxxx>
- In-reply-to: <20220326165909.506926-1-benni@stuerz.xyz>
- References: <20220326165909.506926-1-benni@stuerz.xyz>
This replaces comments with C99's designated
initializers because the kernel supports them now.
Signed-off-by: Benjamin Stürz <benni@xxxxxxxxxx>
---
drivers/net/ethernet/smsc/smc9194.h | 15 ++++++---------
drivers/net/ethernet/smsc/smc91x.h | 18 ++++++++----------
2 files changed, 14 insertions(+), 19 deletions(-)
diff --git a/drivers/net/ethernet/smsc/smc9194.h b/drivers/net/ethernet/smsc/smc9194.h
index cf69d0a5a1cb..e1c780afb9bb 100644
--- a/drivers/net/ethernet/smsc/smc9194.h
+++ b/drivers/net/ethernet/smsc/smc9194.h
@@ -163,15 +163,12 @@ typedef unsigned long int dword;
#define CHIP_91100 7
static const char * chip_ids[ 15 ] = {
- NULL, NULL, NULL,
- /* 3 */ "SMC91C90/91C92",
- /* 4 */ "SMC91C94",
- /* 5 */ "SMC91C95",
- NULL,
- /* 7 */ "SMC91C100",
- /* 8 */ "SMC91C100FD",
- NULL, NULL, NULL,
- NULL, NULL, NULL};
+ [3] = "SMC91C90/91C92",
+ [4] = "SMC91C94",
+ [5] = "SMC91C95",
+ [7] = "SMC91C100",
+ [8] = "SMC91C100FD",
+};
/*
. Transmit status bits
diff --git a/drivers/net/ethernet/smsc/smc91x.h b/drivers/net/ethernet/smsc/smc91x.h
index 387539a8094b..122cdc849507 100644
--- a/drivers/net/ethernet/smsc/smc91x.h
+++ b/drivers/net/ethernet/smsc/smc91x.h
@@ -731,16 +731,14 @@ smc_pxa_dma_insw(void __iomem *ioaddr, struct smc_local *lp, int reg, int dma,
#define CHIP_91111FD 9
static const char * chip_ids[ 16 ] = {
- NULL, NULL, NULL,
- /* 3 */ "SMC91C90/91C92",
- /* 4 */ "SMC91C94",
- /* 5 */ "SMC91C95",
- /* 6 */ "SMC91C96",
- /* 7 */ "SMC91C100",
- /* 8 */ "SMC91C100FD",
- /* 9 */ "SMC91C11xFD",
- NULL, NULL, NULL,
- NULL, NULL, NULL};
+ [3] = "SMC91C90/91C92",
+ [4] = "SMC91C94",
+ [5] = "SMC91C95",
+ [6] = "SMC91C96",
+ [7] = "SMC91C100",
+ [8] = "SMC91C100FD",
+ [9] = "SMC91C11xFD",
+};
/*
--
2.35.1
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]