Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3275743pxb; Sat, 26 Mar 2022 15:15:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGJpG63kLB3WVUgLr1N6u/ZzdCuIb+6yt/mnZUU/siqLwZE5U5WDklsRJKGLVGtO1nzXF+ X-Received: by 2002:a05:6402:510f:b0:419:5105:f7e6 with SMTP id m15-20020a056402510f00b004195105f7e6mr7079404edd.339.1648332908509; Sat, 26 Mar 2022 15:15:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648332908; cv=none; d=google.com; s=arc-20160816; b=wBGGqzzoYzedo9qf1WumlNMm40N1fW5MhL3s8+ehDu8nz+Wc4KaEVN6jrkzyPXOgyj J6alzV4Jk2NtRhTP6NywGnm/2g65Gnt8qpvJ/6xE0GDI4razdiLnx0gh2DgB4CsQHIqp s2ENM41C/MNBqWYHT77nKa9bt0Psanf/HSy1FXJ8+5vf1lYgzfZz5PF9Y6uO7W5DnNJw XzEUuOF3Gl6A486jNpExdWcE7JPdFqh5zl/2mNHIP3dNFq2GkBSTZNoy43Ye56iJt/EH 0SdE+Z7h6jPzPpbClMeYcFtplCE9LOo8xAAQv0hy1+ZkAh8Msi3/Ag2nCTs18Iqmf38e rF0A== 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=mGATwkX4SP0Mqhbj9SCE5AhtOpvVdt7If/2SPGzDgro=; b=Uz9q72aK4GCNqAt4bbhmlc1Cmd+SNUpFs+7/J/sRxYhrVJmzEBwFlA5csYaCuaBnUJ OSXt8GhhDzAgs64Zdl2CPtRk+d123GOce4DOMAFDY0WjAC/d6LPSMi6jm8vmHRyzZDYC K34omxn4Rw6c/voXZpk2Ej0nOVqLtPT/0kUSANVvyDNdjPzaBIYPMi8a2W9gkErkZ8gn jeNYYl7wNZMj3QTpdatMQEzS6fYPz/w9TQw9kHwPo/xY14y/FLHZDLliKAb3noSjsqR8 IYDc7b78JfF3YM22oY0NyHVj+emeA/KFXcc1Gyh4642S2TSsAB5uY7FQiDfsAdofiLse nB2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@stuerz.xyz header.s=mail header.b=yTXX8Igb; dkim=pass header.i=@stuerz.xyz header.s=mail header.b="cAGmc7q/"; 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 s4-20020a170906500400b006df76385daesi6863506ejj.590.2022.03.26.15.14.34; Sat, 26 Mar 2022 15:15:08 -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=yTXX8Igb; dkim=pass header.i=@stuerz.xyz header.s=mail header.b="cAGmc7q/"; 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 S234374AbiCZRK6 (ORCPT + 69 others); Sat, 26 Mar 2022 13:10:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233000AbiCZRKd (ORCPT ); Sat, 26 Mar 2022 13:10:33 -0400 Received: from stuerz.xyz (stuerz.xyz [IPv6:2001:19f0:5:15da:5400:3ff:fecc:7379]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADAF634BA0; Sat, 26 Mar 2022 10:08:33 -0700 (PDT) Received: by stuerz.xyz (Postfix, from userid 114) id 9D973FBBC6; Sat, 26 Mar 2022 17:00:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=stuerz.xyz; s=mail; t=1648314024; bh=gqt1+kI42FGInscQtbmdIv8LY19kdHpeRO5nUSHeT20=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yTXX8Igb67dmxs2rI659X8bFPAsNUwM4FYdfBfqYco2pov/ruj2kzZjHBlDxNkm4O YrS0PiktRz+Kr7/aFJY64IZPdRchAc2MJNAASFeANAOToGtmTs60gRB0CWYatC4Yz3 1ZJDCGLTP8XgRa8IefeCRaT1qjpCVz5BAAoKiFJF7ShxdKbQMTIX0RodhnN2J11VGs k+N760Wph8Ptz1J0J5ixbFLngT+HQI2/cTFotHxVMERaU8M2LJcQTJ7SxTbMfx5rcP YZNQ2bgzHE4XMRQDQRyA9OuyThOohBO9PlEEpixa0+Wbjl+hLiIIhKEEvfsw9ED24f glh+IX8phWjZw== Received: from benni-fedora.. (unknown [IPv6:2a02:8109:a100:1a48:ff0:ef2f:d4da:17d8]) by stuerz.xyz (Postfix) with ESMTPSA id A8729FB7D3; Sat, 26 Mar 2022 17:00:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=stuerz.xyz; s=mail; t=1648314020; bh=gqt1+kI42FGInscQtbmdIv8LY19kdHpeRO5nUSHeT20=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cAGmc7q/v70fp/d8OErxnqAUtLx7NZZMJRTXOS0xd3wx/9j3/80aOVZpisTnSXgpD prCgpdgT77LpFvxgJNlKEBWLSBjZ4kxEnRiiQ8dYJXZz/rVa+mwrDqlAxyVCXFhHlW pIK2SHvu+HJwUEPSNGCBAg9W2pTt/tLFKw/zKUqmtezySp/jWWzvO2dxfFwiuWRJ/2 xpQDsn76lN3Gog+YDVovDRsTD/FUOFZK+XpCqNI1kFh28CwW7J2ObwhgE7g2W94Ieh euilI5YMx4HWkP8cW5lsUQrviC9YxhnjqgNxitvFz2aa9gpm6UrKMQ8V/jtHu5kgQn iXGM/MCmHVf9Q== 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 09/22] gpio-winbond: Use C99 initializers Date: Sat, 26 Mar 2022 17:58:56 +0100 Message-Id: <20220326165909.506926-9-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=0.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FROM_SUSPICIOUS_NTLD, PDS_OTHER_BAD_TLD,SPF_HELO_PASS,SPF_PASS,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 replaces comments with C99's designated initializers because the kernel supports them now. Signed-off-by: Benjamin Stürz --- drivers/gpio/gpio-winbond.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/gpio/gpio-winbond.c b/drivers/gpio/gpio-winbond.c index 7f8f5b02e31d..0b637fdb407c 100644 --- a/drivers/gpio/gpio-winbond.c +++ b/drivers/gpio/gpio-winbond.c @@ -249,7 +249,7 @@ struct winbond_gpio_info { }; static const struct winbond_gpio_info winbond_gpio_infos[6] = { - { /* 0 */ + [0] = { .dev = WB_SIO_DEV_GPIO12, .enablereg = WB_SIO_GPIO12_REG_ENABLE, .enablebit = WB_SIO_GPIO12_ENABLE_1, @@ -266,7 +266,7 @@ static const struct winbond_gpio_info winbond_gpio_infos[6] = { .warnonly = true } }, - { /* 1 */ + [1] = { .dev = WB_SIO_DEV_GPIO12, .enablereg = WB_SIO_GPIO12_REG_ENABLE, .enablebit = WB_SIO_GPIO12_ENABLE_2, @@ -277,7 +277,7 @@ static const struct winbond_gpio_info winbond_gpio_infos[6] = { .datareg = WB_SIO_GPIO12_REG_DATA2 /* special conflict handling so doesn't use conflict data */ }, - { /* 2 */ + [2] = { .dev = WB_SIO_DEV_GPIO34, .enablereg = WB_SIO_GPIO34_REG_ENABLE, .enablebit = WB_SIO_GPIO34_ENABLE_3, @@ -294,7 +294,7 @@ static const struct winbond_gpio_info winbond_gpio_infos[6] = { .warnonly = true } }, - { /* 3 */ + [3] = { .dev = WB_SIO_DEV_GPIO34, .enablereg = WB_SIO_GPIO34_REG_ENABLE, .enablebit = WB_SIO_GPIO34_ENABLE_4, @@ -311,7 +311,7 @@ static const struct winbond_gpio_info winbond_gpio_infos[6] = { .warnonly = true } }, - { /* 4 */ + [4] = { .dev = WB_SIO_DEV_WDGPIO56, .enablereg = WB_SIO_WDGPIO56_REG_ENABLE, .enablebit = WB_SIO_WDGPIO56_ENABLE_5, @@ -328,7 +328,7 @@ static const struct winbond_gpio_info winbond_gpio_infos[6] = { .warnonly = true } }, - { /* 5 */ + [5] = { .dev = WB_SIO_DEV_WDGPIO56, .enablereg = WB_SIO_WDGPIO56_REG_ENABLE, .enablebit = WB_SIO_WDGPIO56_ENABLE_6, -- 2.35.1