Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3141899pxb; Sat, 26 Mar 2022 11:56:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwt58CvKVyRCGi8M8D7ozHNRGsPZvP6xWjaPbLBzlfklaC0M1OEJy1HNFV1yheqgQT6HCkJ X-Received: by 2002:a17:902:e545:b0:154:4d5b:2006 with SMTP id n5-20020a170902e54500b001544d5b2006mr18111659plf.94.1648320961808; Sat, 26 Mar 2022 11:56:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648320961; cv=none; d=google.com; s=arc-20160816; b=sVJk3qh/q3/+RikUIMgCsS+4g6VfUxDo3TVff8SLaM2+dlzIH9FkYq2cEIszIqCB/n DvSQB/28yykONDVyqA1ttoWh2Tkl45OC9lib5Yc1HS1KbXRRnt9JY2/0sHjJnumj5Voz yIiNmRXXtUn/08XGANB5mJ+9/iSwGcqJfJYn8+XbrUwYHi0wrrtPOZyzJnYwS3FnTuR/ yg3QAMi1QVupQHVpr5qtUnH27WD8waYJxW2a1GIbRwfOjWVOrnVX6rZ1++EK6lHCXXNJ g1x/8uuBIcL8yK6C895ctdGPqMK7jznpZseubafL2Iy2dyuEXpxWik39p5fw855Z+RXt 9ygg== 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=1+Rc4vKBnJT6xdJQbbHq/3GEmTR57vDzA2jZk/3YoRs=; b=rN/r0C530izUX0ZHjhQ9HKKR+P4GwgYSOoULAYYhzSD/ReWLPWApvxDdhRaXQyEKmk FEeW8D/l1sqBxVPe6Vx1gGX0jGkFWguSF1iRkLv881yRdbnmIYijxBl73tWywgZyiWpQ 3xpC8VbTp2p8vof2LtxCqWa29Q7Gs8OA5tXOt6hi3Fjsc0QR2TUMMnNhoH+UjZAoi7cC 3AuRQdK1ZkuMTVU5Ve6Tb+Z6/UAX/Y9Pkkv4kTXf6r+yAil+oNdc8QFhtyUYKJQu+GH9 wwN4mlVipKyclZG8I21tMkbR9VVklze6QuvspFwpPfw0wSB937xaPBkfR+23USdCls/v tShA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@stuerz.xyz header.s=mail header.b=Xg8sAhUb; dkim=pass header.i=@stuerz.xyz header.s=mail header.b=lpn1kNOh; 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 j12-20020a63230c000000b003816043f0f1si6231649pgj.742.2022.03.26.11.55.44; Sat, 26 Mar 2022 11:56:01 -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=Xg8sAhUb; dkim=pass header.i=@stuerz.xyz header.s=mail header.b=lpn1kNOh; 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 S234156AbiCZRDr (ORCPT + 69 others); Sat, 26 Mar 2022 13:03:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234042AbiCZRDM (ORCPT ); Sat, 26 Mar 2022 13:03:12 -0400 Received: from stuerz.xyz (unknown [45.77.206.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C545170D93; Sat, 26 Mar 2022 10:01:18 -0700 (PDT) Received: by stuerz.xyz (Postfix, from userid 114) id 4DA25FBC15; Sat, 26 Mar 2022 17:01:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=stuerz.xyz; s=mail; t=1648314077; bh=F4mFOP6R8mSC+27qiR8caNRLqSuQe2zZwUjAxTCpWKk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Xg8sAhUbcrHjQslpCBEpkyjUdn56VuM10WXDhvaub55YmwddV8jrxDpzfZyVe3yZo QlmdtTsaOietyV0DPj7ab0Rp74UEkocsfhjaKvaVeBvpCk+8U7c1QScPnuhaVExP4X laQCdsDMHofwB+7TQ2HA9PoVE59E/5t/zTbGcKcDptM+7QeMCUe92dlvo/q4XNcQkU W3GYfZdC/X3DxCE5//Whh/muwcIbf0RB3klnYztGrQlbXdJLNj/vOoCPSmgcL5gxV7 MUipvDevFObReYEhwHLXtVek1LWz3vzdWZOAwfelAodwolaZwTEHj2h3OTZzkjzJNw iUILBuopsokGw== Received: from benni-fedora.. (unknown [IPv6:2a02:8109:a100:1a48:ff0:ef2f:d4da:17d8]) by stuerz.xyz (Postfix) with ESMTPSA id A2186FB7CD; Sat, 26 Mar 2022 17:01:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=stuerz.xyz; s=mail; t=1648314073; bh=F4mFOP6R8mSC+27qiR8caNRLqSuQe2zZwUjAxTCpWKk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lpn1kNOht3IjqkwWrlXCvwxCCuKRTgm9xratBr2om8NH60q2A3PkG7ny40QNucd/c TI5QLl5gJY3hgaLe/x2wsXDBNDJ8sD7BM5hPjca1hImMajeyzv97QpcvqYXtaodIwn LP32ozhih5w7oBi1imaMTktrGINSREkWcl8znBajxoBVw+kh9bYQXBdB0++rNIqnjk /56oT7zPXmWOO1JkR7/z86GemOpPv2MOrbeEd2gs6B4eQE/NQoych/gsIiVj9RsovA xRoAwNJStE0bvDErb8jy1vAHc4WALCyAibhfkba1AKMkK5kA2ZNDgcbcDAeFBT4Qns 573fZe452hA5g== 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 17/22] cxl: Replace comments with C99 initializers Date: Sat, 26 Mar 2022 17:59:04 +0100 Message-Id: <20220326165909.506926-17-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 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/misc/cxl/hcalls.c | 40 +++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/drivers/misc/cxl/hcalls.c b/drivers/misc/cxl/hcalls.c index aba5e20eeb1f..ed2086d579d3 100644 --- a/drivers/misc/cxl/hcalls.c +++ b/drivers/misc/cxl/hcalls.c @@ -86,32 +86,32 @@ static char *afu_op_names[] = { - "UNKNOWN_OP", /* 0 undefined */ - "RESET", /* 1 */ - "SUSPEND_PROCESS", /* 2 */ - "RESUME_PROCESS", /* 3 */ - "READ_ERR_STATE", /* 4 */ - "GET_AFU_ERR", /* 5 */ - "GET_CONFIG", /* 6 */ - "GET_DOWNLOAD_STATE", /* 7 */ - "TERMINATE_PROCESS", /* 8 */ - "COLLECT_VPD", /* 9 */ - "UNKNOWN_OP", /* 10 undefined */ - "GET_FUNCTION_ERR_INT", /* 11 */ - "ACK_FUNCTION_ERR_INT", /* 12 */ - "GET_ERROR_LOG", /* 13 */ + [0] = "UNKNOWN_OP", /* undefined */ + [1] = "RESET", + [2] = "SUSPEND_PROCESS", + [3] = "RESUME_PROCESS", + [4] = "READ_ERR_STATE", + [5] = "GET_AFU_ERR", + [6] = "GET_CONFIG", + [7] = "GET_DOWNLOAD_STATE", + [8] = "TERMINATE_PROCESS", + [9] = "COLLECT_VPD", + [10] = "UNKNOWN_OP", /* undefined */ + [11] = "GET_FUNCTION_ERR_INT", + [12] = "ACK_FUNCTION_ERR_INT", + [13] = "GET_ERROR_LOG", }; static char *control_adapter_op_names[] = { - "UNKNOWN_OP", /* 0 undefined */ - "RESET", /* 1 */ - "COLLECT_VPD", /* 2 */ + [0] = "UNKNOWN_OP", /* undefined */ + [1] = "RESET", + [2] = "COLLECT_VPD", }; static char *download_op_names[] = { - "UNKNOWN_OP", /* 0 undefined */ - "DOWNLOAD", /* 1 */ - "VALIDATE", /* 2 */ + [0] = "UNKNOWN_OP", /* undefined */ + [1] = "DOWNLOAD", + [2] = "VALIDATE", }; static char *op_str(unsigned int op, char *name_array[], int array_len) -- 2.35.1