Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp5601140pxb; Mon, 28 Mar 2022 14:48:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyczuW6SJJ8UbBWI7GE34ZpCtXWJLToJ7eSFbt2WAxofw4xLE+ByPwZTsSWVxmz5WG6YPUE X-Received: by 2002:a63:5a09:0:b0:378:fdc1:a739 with SMTP id o9-20020a635a09000000b00378fdc1a739mr11522088pgb.81.1648504127803; Mon, 28 Mar 2022 14:48:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648504127; cv=none; d=google.com; s=arc-20160816; b=S9QHX0Z0J4cIkRex9VpEfMaiAZfAflhV7TdjF9mpiwNDSHJXXvaZKVfe4bNLnXbbwx 14/bPTxD7DlSHzgUyq8WVxFoE1LjQBKu3nVnjPK1ioCOWVyZOS79p22H1TPrhJh2GB96 92vqlQhXJ/9iGc/qyRpV+xwOp6IaQoAd4PgzY8bcc+XGvPuzhZ6iuTyRCoDILdYy7tDS oF51/zJRo3zqjpBQsXdcVsO0t3cIS4nRSFobJi0cBCZANejuth1I42NLVHS+BKyUMUL3 YobXQxpXa8GgGtYXsaYOv5e310DFBJMPnTaec9voufFnGV4eM3W3bjaiWdO/JEbYPEoC WHKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-signature; bh=kvwPW0vhnUZDcBV1exFbt2q18lTb+rjocbP2UNr6B4E=; b=Whl34hPGn9mQlZx1m4JazvOUiLlULFtx/AyvNeyHcWdFZZqDQNCdB6TZ9WVa/P2uq/ +cbPIRUiBS0T75a9ijmvW7kw4DnQy2mgm9SsRQT8ETt1EvnF/PT5GydD/l6JZNNudkdN AF42THdmmvthWz23eTv6OZYwKmbZmKyXemgI2HXmO6XlYGjiO317HWyDpKtOfam3DvOh NSpAuJGnExl4g1jrB1TRB2iYhtn0BufW88QeOf7MlGceyH4vI29iCbVFRBbsPHW1FxYP Jg1H/pfkPr8qkzJZzWtzi3QH9zMvs7L/z1IE0aswlWlwhu02+LyMrf7ChYAkUcfb7Iue zDVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@stuerz.xyz header.s=mail header.b=pmDCnjHH; dkim=pass header.i=@stuerz.xyz header.s=mail header.b="u1/OpXzU"; spf=softfail (google.com: domain of transitioning linux-wireless-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id c20-20020a63d514000000b003816043f042si14739272pgg.567.2022.03.28.14.48.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Mar 2022 14:48:47 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-wireless-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@stuerz.xyz header.s=mail header.b=pmDCnjHH; dkim=pass header.i=@stuerz.xyz header.s=mail header.b="u1/OpXzU"; spf=softfail (google.com: domain of transitioning linux-wireless-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=stuerz.xyz Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2A2D0ECD88; Mon, 28 Mar 2022 14:20:53 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245185AbiC1SXo (ORCPT + 68 others); Mon, 28 Mar 2022 14:23:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234885AbiC1SXm (ORCPT ); Mon, 28 Mar 2022 14:23:42 -0400 Received: from stuerz.xyz (unknown [45.77.206.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E052940934; Mon, 28 Mar 2022 11:22:01 -0700 (PDT) Received: by stuerz.xyz (Postfix, from userid 114) id 3D57DFA6FA; Mon, 28 Mar 2022 18:22:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=stuerz.xyz; s=mail; t=1648491721; bh=cOHs6Dygnr8f9Xh/PIbQCTcmuBFS602dynHyaovTSvg=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=pmDCnjHHrqRa3Dm3V+iufHZipADY0FZ9RgG0h/4MHTFWp/zzthsEF7PYGi7xYr8pR lpgnhdE8xLQcEsnK2/UIdvHQfZe4Kz8wO8NvLBLPiATBhCXZ0FN7IoCbtPjTBtonZQ W2TmZuliTiB5rdhySL5ilByt0EhFvAs6E1DwGzqyLSNENpNOfJKI4VE5yvuH18wU9Q vJDauvD8Qywqsetyzze4sgdI9m2e63kWvY7JzC7DU8q+9ndk5DF9+7tkTUdB95F1yO mHvV5hBJnO3XAKcOLTJ8207tCLppwnvHmsHSIU6MDYVY4hAsp1k3Qcy8CbqaBDdPLF hR7kxdr07Ljzg== Received: from [IPV6:2a02:8109:a100:1a48:ff0:ef2f:d4da:17d8] (unknown [IPv6:2a02:8109:a100:1a48:ff0:ef2f:d4da:17d8]) by stuerz.xyz (Postfix) with ESMTPSA id 0E643FA6B1; Mon, 28 Mar 2022 18:21:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=stuerz.xyz; s=mail; t=1648491718; bh=cOHs6Dygnr8f9Xh/PIbQCTcmuBFS602dynHyaovTSvg=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=u1/OpXzUZAtaaHVVjI5rz6jWnLRgL12meTQpnmtHWY7pmFYqX9xVn2/VALywSlYId HdvAKfF2zgL2YLsfv7ugIAnc/k6GgWbcomXhuPXqgE86BZ1VFJXCv6HDGZAe9dAvUv MOzSVa0Txbqpe4lOxnInZB0vxG/czgco27SkmQJbxJCAWUOBbiVB53WuKm1sq5BFQ1 W9cZTtyUwq+GQAYyJG0spxsGlK9GV6D1bmKGf8ibbMPdngjMBrpRI313Bx/wVEb1UY 7p1Uihb+xrw1fsI6HqnZQdYy1FiKO0214/OJQSpH+rIPFklALmjefuKSHgbldiALCi 9zpgM7BcDqvrw== Message-ID: <1b694c4c-100b-951a-20f7-df1c912bb550@stuerz.xyz> Date: Mon, 28 Mar 2022 20:21:56 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: [PATCH 20/22 v2] ray_cs: Replace comments with C99 initializers Content-Language: en-US To: Kalle Valo Cc: kuba@kernel.org, davem@davemloft.net, pabeni@redhat.com, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?Q?Benjamin_St=c3=bcrz?= References: <20220326165909.506926-20-benni@stuerz.xyz> <164846920750.11945.16978682699891961444.kvalo@kernel.org> From: =?UTF-8?Q?Benjamin_St=c3=bcrz?= In-Reply-To: <164846920750.11945.16978682699891961444.kvalo@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FROM_SUSPICIOUS_NTLD, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,PDS_OTHER_BAD_TLD, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 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 Replace comments with C99's designated initializers. Signed-off-by: Benjamin Stürz --- 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