Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp4226144pxb; Sun, 27 Mar 2022 14:41:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxuiaqpjlvHYOxyr2UveX4kcNi5e9Yd6fLw4x1R3nuPew7wjN7vE2TWKqbODH4ajkrlu8C X-Received: by 2002:a17:907:869f:b0:6da:888b:4258 with SMTP id qa31-20020a170907869f00b006da888b4258mr24431970ejc.720.1648417310161; Sun, 27 Mar 2022 14:41:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648417310; cv=none; d=google.com; s=arc-20160816; b=LfHrrim39QPE5888/l/FxDlEFlBSh3fjO4zyuK+j+PfV0ttNCdqej+tTEt8Wb87sCG e2h7z606O2dasVyIGwTQ8/RAI9+7hPuN19GIb4KwHOSOr4ioYEJgPN0q83NkFcB0PHVs fB8fqj51cG59GueWDN/aMWRUMmJt28dUGgkFKiedjQInFl5ZD5zzoJnzvlO+YYtZiUrn 4rcIC562v0tXm1ndJKmLgTLM3WHgq9GzVQRxNmGvwfiJXDPv/ktjpyAHsKaG4jljfawS jLWMuCtqb+Ok+meBxfP4K0jOTnphMK+adWvxzV+lE8l128JSSMVkNlhR+c6XbsxUN+Mx N5aA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=x56yWfmdGed1hV/v0JCaVhoc/vYDEgjoDcgaL5FH/3I=; b=GFVEflUZbHhEgwq83NSnkeMK9NG4mcSiPhN0V5rFWIIu9GjN7hvdFOhHtiJCumAhI+ 7r2Oog26Q88eJXKozk7U5c4YwRiYu0ZKwqymgJpIrqBeXFDAuj8OAdjru1oMQDZUEP+J PUm83dK6qA441hlAYvyMSXKqP6nqqP3lhQY0XiIdfpeLTAwBJlO1sSUjm2l4nE65a2V1 SV0AMYoEekera3dqB35pRa06WhlO8wEqzplWCqgMVtZYWOTw5eJP5OHadtP9Yj+FpwsK /xdmUri5l3qErD0o9S5qOC8YMdufbGla7Q2RMcMkzKnZmmcGpixVbhN4ciMGJGp2Xn5T t4/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@stuerz.xyz header.s=mail header.b=jW5AjdYS; dkim=pass header.i=@stuerz.xyz header.s=mail header.b=H26TIaWM; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=stuerz.xyz Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t9-20020a056402020900b00418c2b5bf5fsi10495679edv.577.2022.03.27.14.41.26; Sun, 27 Mar 2022 14:41:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@stuerz.xyz header.s=mail header.b=jW5AjdYS; dkim=pass header.i=@stuerz.xyz header.s=mail header.b=H26TIaWM; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=stuerz.xyz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233900AbiCZRED (ORCPT + 69 others); Sat, 26 Mar 2022 13:04:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234063AbiCZRDT (ORCPT ); Sat, 26 Mar 2022 13:03:19 -0400 Received: from stuerz.xyz (unknown [45.77.206.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD4A11728AF; Sat, 26 Mar 2022 10:01:31 -0700 (PDT) Received: by stuerz.xyz (Postfix, from userid 114) id CAC74FBC15; Sat, 26 Mar 2022 17:01:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=stuerz.xyz; s=mail; t=1648314090; bh=GR587e14fj7vyf0bO2BugLnbQ5EnAUU2jijqnxcsSs4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jW5AjdYSByRdLOX240+sHJxCgM2QeEUTMkSkZtNvLvFB033JNfa1bSbHVlgkImdlG J20nepjpe5eLQ+hB8qlD/dew46CRiGh/6rRjKWopeZNIjoW7qIrMHs4mZ5N/+LMtGR HQBi+TH4yP9yH/zJsksR8Sx+cfv0n7eQzl41Oe5UpfkQNeKbVfJmgCtjCfhq7xuwlW nDd4qJujUwto7MFYhx8H5+HWK8UuMnJsOuKJyOCunBBgnmkrC9SfH4qG8snDKzPVhs MXvZkc92QyDum3bawWqFr/m8pK2NfD+vwv8an8XmOjsNsyO0+Lz1gPLUXwmWRY6V/T M5PV4yPdX/PQQ== Received: from benni-fedora.. (unknown [IPv6:2a02:8109:a100:1a48:ff0:ef2f:d4da:17d8]) by stuerz.xyz (Postfix) with ESMTPSA id DE6B1FB7CD; Sat, 26 Mar 2022 17:01:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=stuerz.xyz; s=mail; t=1648314086; bh=GR587e14fj7vyf0bO2BugLnbQ5EnAUU2jijqnxcsSs4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=H26TIaWMVGKq4tF2BG6qu/hCDcSX611Q5whfiFBruI8g3h+nG8n0r8hl+xjhGpOnt PQcE6X6BljRd7Chbp7ruW2FXYT0H3sRliw60OtFCYiWyLfDIHA26MMP2RqHNdYHDTR HS1yhmuOKde/dOuNKaTBZoyMPKw5bD98diBrAE527OHu1i2BzjovAhDC2uvBAZA2s6 xskXmBDZNrzcJPy6bNdGhMbm6vzJwoJjlyvtIAlLd06bRdZzTrA9sjn5qnKQxeCoI3 PcMERwXpsbCKB8tvMkv2YuKpgOnTtiTZl4bKXlbzVnz1lPZMlhJZgrvK+w9hOqR2RZ mtoVK+uBYp/1Q== From: =?UTF-8?q?Benjamin=20St=C3=BCrz?= To: andrew@lunn.ch Cc: sebastian.hesselbarth@gmail.com, gregory.clement@bootlin.com, linux@armlinux.org.uk, linux@simtec.co.uk, krzk@kernel.org, alim.akhtar@samsung.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, hpa@zytor.com, robert.moore@intel.com, rafael.j.wysocki@intel.com, lenb@kernel.org, 3chas3@gmail.com, laforge@gnumonks.org, arnd@arndb.de, gregkh@linuxfoundation.org, mchehab@kernel.org, tony.luck@intel.com, james.morse@arm.com, rric@kernel.org, linus.walleij@linaro.org, brgl@bgdev.pl, mike.marciniszyn@cornelisnetworks.com, dennis.dalessandro@cornelisnetworks.com, jgg@ziepe.ca, pali@kernel.org, dmitry.torokhov@gmail.com, isdn@linux-pingi.de, benh@kernel.crashing.org, fbarrat@linux.ibm.com, ajd@linux.ibm.com, davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, nico@fluxnic.net, loic.poulain@linaro.org, kvalo@kernel.org, pkshih@realtek.com, bhelgaas@google.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-ia64@vger.kernel.org, linux-acpi@vger.kernel.org, devel@acpica.org, linux-atm-general@lists.sourceforge.net, netdev@vger.kernel.org, linux-edac@vger.kernel.org, linux-gpio@vger.kernel.org, linux-rdma@vger.kernel.org, linux-input@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-media@vger.kernel.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org, linux-pci@vger.kernel.org, =?UTF-8?q?Benjamin=20St=C3=BCrz?= Subject: [PATCH 19/22] wnc36xx: Replace comments with C99 initializers Date: Sat, 26 Mar 2022 17:59:06 +0100 Message-Id: <20220326165909.506926-19-benni@stuerz.xyz> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220326165909.506926-1-benni@stuerz.xyz> References: <20220326165909.506926-1-benni@stuerz.xyz> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=1.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FROM_SUSPICIOUS_NTLD, PDS_OTHER_BAD_TLD,RDNS_DYNAMIC,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,UPPERCASE_50_75 autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org This replaces comments with C99's designated initializers because the kernel supports them now. Signed-off-by: Benjamin Stürz --- drivers/net/wireless/ath/wcn36xx/main.c | 122 ++++++++++++------------ 1 file changed, 61 insertions(+), 61 deletions(-) diff --git a/drivers/net/wireless/ath/wcn36xx/main.c b/drivers/net/wireless/ath/wcn36xx/main.c index 95ea7d040d8c..0fed64bd37b4 100644 --- a/drivers/net/wireless/ath/wcn36xx/main.c +++ b/drivers/net/wireless/ath/wcn36xx/main.c @@ -193,67 +193,67 @@ static inline u8 get_sta_index(struct ieee80211_vif *vif, } static const char * const wcn36xx_caps_names[] = { - "MCC", /* 0 */ - "P2P", /* 1 */ - "DOT11AC", /* 2 */ - "SLM_SESSIONIZATION", /* 3 */ - "DOT11AC_OPMODE", /* 4 */ - "SAP32STA", /* 5 */ - "TDLS", /* 6 */ - "P2P_GO_NOA_DECOUPLE_INIT_SCAN",/* 7 */ - "WLANACTIVE_OFFLOAD", /* 8 */ - "BEACON_OFFLOAD", /* 9 */ - "SCAN_OFFLOAD", /* 10 */ - "ROAM_OFFLOAD", /* 11 */ - "BCN_MISS_OFFLOAD", /* 12 */ - "STA_POWERSAVE", /* 13 */ - "STA_ADVANCED_PWRSAVE", /* 14 */ - "AP_UAPSD", /* 15 */ - "AP_DFS", /* 16 */ - "BLOCKACK", /* 17 */ - "PHY_ERR", /* 18 */ - "BCN_FILTER", /* 19 */ - "RTT", /* 20 */ - "RATECTRL", /* 21 */ - "WOW", /* 22 */ - "WLAN_ROAM_SCAN_OFFLOAD", /* 23 */ - "SPECULATIVE_PS_POLL", /* 24 */ - "SCAN_SCH", /* 25 */ - "IBSS_HEARTBEAT_OFFLOAD", /* 26 */ - "WLAN_SCAN_OFFLOAD", /* 27 */ - "WLAN_PERIODIC_TX_PTRN", /* 28 */ - "ADVANCE_TDLS", /* 29 */ - "BATCH_SCAN", /* 30 */ - "FW_IN_TX_PATH", /* 31 */ - "EXTENDED_NSOFFLOAD_SLOT", /* 32 */ - "CH_SWITCH_V1", /* 33 */ - "HT40_OBSS_SCAN", /* 34 */ - "UPDATE_CHANNEL_LIST", /* 35 */ - "WLAN_MCADDR_FLT", /* 36 */ - "WLAN_CH144", /* 37 */ - "NAN", /* 38 */ - "TDLS_SCAN_COEXISTENCE", /* 39 */ - "LINK_LAYER_STATS_MEAS", /* 40 */ - "MU_MIMO", /* 41 */ - "EXTENDED_SCAN", /* 42 */ - "DYNAMIC_WMM_PS", /* 43 */ - "MAC_SPOOFED_SCAN", /* 44 */ - "BMU_ERROR_GENERIC_RECOVERY", /* 45 */ - "DISA", /* 46 */ - "FW_STATS", /* 47 */ - "WPS_PRBRSP_TMPL", /* 48 */ - "BCN_IE_FLT_DELTA", /* 49 */ - "TDLS_OFF_CHANNEL", /* 51 */ - "RTT3", /* 52 */ - "MGMT_FRAME_LOGGING", /* 53 */ - "ENHANCED_TXBD_COMPLETION", /* 54 */ - "LOGGING_ENHANCEMENT", /* 55 */ - "EXT_SCAN_ENHANCED", /* 56 */ - "MEMORY_DUMP_SUPPORTED", /* 57 */ - "PER_PKT_STATS_SUPPORTED", /* 58 */ - "EXT_LL_STAT", /* 60 */ - "WIFI_CONFIG", /* 61 */ - "ANTENNA_DIVERSITY_SELECTION", /* 62 */ + [0] = "MCC", + [1] = "P2P", + [2] = "DOT11AC", + [3] = "SLM_SESSIONIZATION", + [4] = "DOT11AC_OPMODE", + [5] = "SAP32STA", + [6] = "TDLS", + [7] = "P2P_GO_NOA_DECOUPLE_INIT_SCAN", + [8] = "WLANACTIVE_OFFLOAD", + [9] = "BEACON_OFFLOAD", + [10] = "SCAN_OFFLOAD", + [11] = "ROAM_OFFLOAD", + [12] = "BCN_MISS_OFFLOAD", + [13] = "STA_POWERSAVE", + [14] = "STA_ADVANCED_PWRSAVE", + [15] = "AP_UAPSD", + [16] = "AP_DFS", + [17] = "BLOCKACK", + [18] = "PHY_ERR", + [19] = "BCN_FILTER", + [20] = "RTT", + [21] = "RATECTRL", + [22] = "WOW", + [23] = "WLAN_ROAM_SCAN_OFFLOAD", + [24] = "SPECULATIVE_PS_POLL", + [25] = "SCAN_SCH", + [26] = "IBSS_HEARTBEAT_OFFLOAD", + [27] = "WLAN_SCAN_OFFLOAD", + [28] = "WLAN_PERIODIC_TX_PTRN", + [29] = "ADVANCE_TDLS", + [30] = "BATCH_SCAN", + [31] = "FW_IN_TX_PATH", + [32] = "EXTENDED_NSOFFLOAD_SLOT", + [33] = "CH_SWITCH_V1", + [34] = "HT40_OBSS_SCAN", + [35] = "UPDATE_CHANNEL_LIST", + [36] = "WLAN_MCADDR_FLT", + [37] = "WLAN_CH144", + [38] = "NAN", + [39] = "TDLS_SCAN_COEXISTENCE", + [40] = "LINK_LAYER_STATS_MEAS", + [41] = "MU_MIMO", + [42] = "EXTENDED_SCAN", + [43] = "DYNAMIC_WMM_PS", + [44] = "MAC_SPOOFED_SCAN", + [45] = "BMU_ERROR_GENERIC_RECOVERY", + [46] = "DISA", + [47] = "FW_STATS", + [48] = "WPS_PRBRSP_TMPL", + [49] = "BCN_IE_FLT_DELTA", + [51] = "TDLS_OFF_CHANNEL", + [52] = "RTT3", + [53] = "MGMT_FRAME_LOGGING", + [54] = "ENHANCED_TXBD_COMPLETION", + [55] = "LOGGING_ENHANCEMENT", + [56] = "EXT_SCAN_ENHANCED", + [57] = "MEMORY_DUMP_SUPPORTED", + [58] = "PER_PKT_STATS_SUPPORTED", + [60] = "EXT_LL_STAT", + [61] = "WIFI_CONFIG", + [62] = "ANTENNA_DIVERSITY_SELECTION", }; static const char *wcn36xx_get_cap_name(enum place_holder_in_cap_bitmap x) -- 2.35.1