Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1171826pxb; Wed, 6 Apr 2022 10:24:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyUdHf5pD7c+j9VusEptD/Kw+ghlWhuOG1lPCYDVDyJaak/vgW0OREYuUry5bQWp4c1gnjr X-Received: by 2002:a17:903:240a:b0:14e:dad4:5ce4 with SMTP id e10-20020a170903240a00b0014edad45ce4mr9866452plo.125.1649265881185; Wed, 06 Apr 2022 10:24:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649265881; cv=none; d=google.com; s=arc-20160816; b=nXwFGxPm6ikb2mo6LhvFx510Emt3judPKsAFXDFJOaucQWpgCDvjyEkScpSQGFs0/C fmiV5lHEG3Yka6K1y49u0MpRj6yV6mUD1qOPwVHcnk/TeYTx+d33zrB2XOH7v7LQOh9x FEbLAWloWWTonBUYlTDuNN8GQ7uE5FnJQh7E4sA4CRdWZqi/PiSrzSXnEDZdtrxkYOzM VI11Xz/YLkki6zxj99dVGM0+uiJVBXSiPTPFdLIMK9ygj8+y3rXb/KgYU4OywfOHXc5i zlKRqcNiosNhyykQ6nIGvoySsOLb7bZjMWFXYFKPeH5HtyI9PF6cB3SO9QSCxscWZPO8 Hsog== 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 :message-id:date:subject:cc:to:from:dkim-signature:dkim-signature; bh=mx1PU3r/zz1pi1oz4rBWYMQmdcsSctvm/YG3b8tJYjg=; b=nJFzD28iCOXxhRrVLZmoypBg08ikmbN7JmphAecHMYO9Ih6OyEqmTPbdDiTM8upp9R 03oXbUDmLNM9x/lTTsjD2ZYCIKivhDAewr9Af1HUH0TJDvTyhRIYgqkfjYY/Rher49zb 7o0SxhvTYz6x4QtZ+iwVCtzDpIpSxZDq3SX6lVlcMEQRbeP0FM9YidpKzvU333Yrnl7Z MSW/mCcy8wi+kVAe6JClyykdTKOTKihS3pu+e1+6O+Ez6lAwEdo2h1QsgQCEsT/PsH+p UG/Lhwk9In3k/t0t4MiIOuIQA8NDKn4TXaYg1Irsw0FLxMQEVOz5IdesKWtDDdAxfPfd aEWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@stuerz.xyz header.s=mail header.b=Bhm85yBe; dkim=pass header.i=@stuerz.xyz header.s=mail header.b="GIiyk/hm"; 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 q13-20020a63f94d000000b0038207e00911si16699116pgk.540.2022.04.06.10.24.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 10:24:41 -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=Bhm85yBe; dkim=pass header.i=@stuerz.xyz header.s=mail header.b="GIiyk/hm"; 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 6363A267C27; Wed, 6 Apr 2022 10:23:47 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238986AbiDFRZo (ORCPT + 69 others); Wed, 6 Apr 2022 13:25:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238639AbiDFRZg (ORCPT ); Wed, 6 Apr 2022 13:25:36 -0400 Received: from stuerz.xyz (stuerz.xyz [IPv6:2001:19f0:5:15da:5400:3ff:fecc:7379]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CC014B75A7; Wed, 6 Apr 2022 08:24:29 -0700 (PDT) Received: by stuerz.xyz (Postfix, from userid 114) id EECFCFC6D8; Wed, 6 Apr 2022 15:24:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=stuerz.xyz; s=mail; t=1649258668; bh=vlsd1PJdKyHK1SGffch1w4JGaYZk4ff39fIfLFwEuZM=; h=From:To:Cc:Subject:Date:From; b=Bhm85yBeKpAs0mNtJfQmunUKCt9wKZ6FJlrORtEaXOS1UPoe0RWsefVsFM7oR+USC aR4CU4LEZugODwYdume9WUxLc6RpnUJwTy7CDgFdvrYaL1WKTRcIDHseSqQt+Bx1l5 qzqnOXu7lLnRgkgsc0HL/MaUbcyTc5O5gK60+ocvl+Jekvr1zFvAeraE2FlJIa99HP 7cfBZS24vOXasOWXrxeZOgBHNgyMGbuod1dH71PPCoBe/LhhQZx0gI86yzahyV7mo2 45/fL/edMCJTWHcM1qtok3ObuxxLTToHN0uNcpcTBojZeUmmbhsJ4dG1+oAKy+r/si FXcl5bQZhWmfw== Received: from benni-fedora.. (unknown [IPv6:2a02:8109:a100:1a48::1e62]) by stuerz.xyz (Postfix) with ESMTPSA id 96194FBC37; Wed, 6 Apr 2022 15:24:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=stuerz.xyz; s=mail; t=1649258666; bh=vlsd1PJdKyHK1SGffch1w4JGaYZk4ff39fIfLFwEuZM=; h=From:To:Cc:Subject:Date:From; b=GIiyk/hmfR1kNFA+Ij4qKoJN429DqKLzNttrcYiiQaZWbyXyf+yiOzEqxAjtYO7nz sCU07p2g9Aw7wMKWzH6ZQTImglyoQ2tum3gGu/4vY5PXK+Nc4Ne1GJo8Qfb3fG+9ll lxdKlhULMG9TOnTd2tvgK1h7jDABAPE4HnAyfMrVar7yx0KJiXyd1DbrLnns6bfwXm fCIUskh/3plAkSKldKr7iSyM/QBP9WWFJsZP53Nr185guYscRoF9D6gvV/MXp3oOBu 1zbRL6c94ExtCicpzm0xhcIzNA5prqYi7I09Il0fd9Ymzj5DRd8HDJknMOJWHizIx0 Dfh0HyZFShlXg== From: =?UTF-8?q?Benjamin=20St=C3=BCrz?= To: kvalo@kernel.org Cc: davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Benjamin=20St=C3=BCrz?= Subject: [PATCH v4 0/2] wireless: ray_cs: Improve card_status[] Date: Wed, 6 Apr 2022 17:22:45 +0200 Message-Id: <20220406152247.386267-1-benni@stuerz.xyz> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 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 This small patch series improves the card_status[] array in ray_cs.c. It essentially replaces comments describing the index with designated initializers using enum constants as indexes. It also makes the array const because it shouldn't be modified at runtime. Benjamin Stürz (2): ray_cs: Improve card_status[] ray_cs: Make card_status[] const drivers/net/wireless/ray_cs.c | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) -- 2.35.1