[PATCH 20/22] wireless: Replace comments with C99 initializers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: andrew@xxxxxxx
- Subject: [PATCH 20/22] wireless: Replace comments with C99 initializers
- From: Benjamin Stürz <benni@xxxxxxxxxx>
- Date: Sat, 26 Mar 2022 17:59:07 +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/wireless/ray_cs.c | 31 +++++++++++++++++--------------
1 file changed, 17 insertions(+), 14 deletions(-)
diff --git a/drivers/net/wireless/ray_cs.c b/drivers/net/wireless/ray_cs.c
index 87e98ab068ed..dd11018b956c 100644
--- a/drivers/net/wireless/ray_cs.c
+++ b/drivers/net/wireless/ray_cs.c
@@ -2529,20 +2529,23 @@ static void clear_interrupt(ray_dev_t *local)
#define MAXDATA (PAGE_SIZE - 80)
static const char *card_status[] = {
- "Card inserted - uninitialized", /* 0 */
- "Card not downloaded", /* 1 */
- "Waiting for download parameters", /* 2 */
- "Card doing acquisition", /* 3 */
- "Acquisition complete", /* 4 */
- "Authentication complete", /* 5 */
- "Association complete", /* 6 */
- "???", "???", "???", "???", /* 7 8 9 10 undefined */
- "Card init error", /* 11 */
- "Download parameters error", /* 12 */
- "???", /* 13 */
- "Acquisition failed", /* 14 */
- "Authentication refused", /* 15 */
- "Association failed" /* 16 */
+ [0] = "Card inserted - uninitialized",
+ [1] = "Card not downloaded",
+ [2] = "Waiting for download parameters",
+ [3] = "Card doing acquisition",
+ [4] = "Acquisition complete",
+ [5] = "Authentication complete",
+ [6] = "Association complete",
+ [7] = "???",
+ [8] = "???",
+ [9] = "???",
+ [10] = "???",
+ [11] = "Card init error",
+ [12] = "Download parameters error",
+ [13] = "???",
+ [14] = "Acquisition failed",
+ [15] = "Authentication refused",
+ [16] = "Association failed"
};
static const char *nettype[] = { "Adhoc", "Infra " };
--
2.35.1
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]