Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp397174pxb; Tue, 29 Mar 2022 05:43:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwtwmc5TJEm3TgjEorDi0pPZdqcxodBdgphpR0ApUC9EKZqLoL36sxxTSLSGxF39huHmoGc X-Received: by 2002:a05:6402:13d6:b0:419:2eab:d21 with SMTP id a22-20020a05640213d600b004192eab0d21mr4331316edx.78.1648557811142; Tue, 29 Mar 2022 05:43:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648557811; cv=none; d=google.com; s=arc-20160816; b=BxW5e5fbczx95Z/6hnt6kGloMKRxfF/AR2zP/hiN6XS1hUMNVg5Hfh67t1yp29teeD BP1GyQtzyW7itogh3EmpU93wlu7BUV5ikN1y/csV3+x29zDQud/uoC6TQvCihTzfFRg+ Euu7P/HzZl2Uhz4qp9ILiCqbHAkC4agDrLweQ2W1hOIF9QqnsxlnRowrjCwB6kDTc9ok OLHymK1Iz7t1nJ0Z5vYHKzK1XCePktAcEw/7NMH5GQnpBt1M1Cyl90apfU7ieOLaxJfl 1PRiomiX2oIbFfGfLlYlvSc1FSuNnXFr8f5fPKZ/+Us5aQSkn2sxN5cdWDiAZsQ5l5RV gO9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=nRQGNy0JNeG8yPE1QXXWKqsK/KgT2iVgd9NOSAmnpao=; b=NERATsQ+NMM/atAh8/mqkx0p6i4CsBP9tA4uL+ojsklgpKJQNoM2mw7dP6kojoSVfR Mxq/Joww79TdMsZuLaJsI3H1JiIx/OyJN6Nuaj5CzfZQu6oolQ4Joy9wz+iuoskuOgtR VjPloHE/kjVvIwL/qsuvIoYPgvoNH44GXSVAgV2PFAU3D/PK6WtiTOBfCAsd/g5IVO76 FtfRfMaaRjs/sD4/SthGGxd2z1TyYIRXd3jTF6il4kVopeWBjrb+kMkcs/KvQzSrPW0a yAbpwsKfxjhdl83IyWSxoIPdByApK0dMilzdY8O0ix0HmNSSbwsEDbhJj8LpyJfFevmP OpRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=rghn0NZ7; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ne36-20020a1709077ba400b006df76385f40si150346ejc.992.2022.03.29.05.43.12; Tue, 29 Mar 2022 05:43:31 -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=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=rghn0NZ7; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236336AbiC2Mcl (ORCPT + 68 others); Tue, 29 Mar 2022 08:32:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236321AbiC2Mci (ORCPT ); Tue, 29 Mar 2022 08:32:38 -0400 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 065EB606F3 for ; Tue, 29 Mar 2022 05:30:53 -0700 (PDT) Received: by mail-ej1-x629.google.com with SMTP id o10so34840316ejd.1 for ; Tue, 29 Mar 2022 05:30:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=nRQGNy0JNeG8yPE1QXXWKqsK/KgT2iVgd9NOSAmnpao=; b=rghn0NZ7veo+c7F9TgovwmfTphDZN1nzJMzcXj5lds+VNPPlWVx4s9Km9UFuESnj9C 0j6zPwG/Xf6D92JpGQDO2SsY514Cc3dispUkIKCGzRnO4C9HS7T9TWQ6L1NWItI9HoVR Wk/smMInsq69ioZO8yNZDu546rixqBUH1Q7RKjgyI+USlKpBx73H+Jxrz2inmb2EkToU H2vf7Sa/pckmLcWFoAxiMBDzr7UgHBsB2Q8hra4/Kl5ny0G8cLhgWaE+yEkyTutDGHt1 d/7ehdh+gvbKH2tMg6SF+fI/PRBhqZLpgBB/Oz9YxV+MxEClGvdSUz2pl20OT0F+Mpvd d2oQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=nRQGNy0JNeG8yPE1QXXWKqsK/KgT2iVgd9NOSAmnpao=; b=oTPPA8tFMU1YKWFOvvXP8A3GdY3Mp1tGLQr2yPHcR7Bgq9boMbMyJUFYCVLCBOYMXC 8KbryoreMyRnp6TYnpnp9hPGmrHWZL+JEgi51K7miX5ASsMnGw/xUVxIZEsif8bpOwed dPNoAff48/0P3O5CMX9gLzZqk9BseoPNlCNKXKIPuT5jMaaVhRFTjPkSqpdgwanGIJjs w2rIDdfa78B2qN5NMQuoZWG8jrvotVLqnUTI1ujZT6HktxGR+CFRNKz+HFA5zhiJUqTC tFasV7X+LTxoxRkWukkRKYEFGskqrtgZRXxp5fZAAoDlww6+Q68lveavDwZi6kOyunP8 b1NA== X-Gm-Message-State: AOAM53236gF6aK9+tQAhbznaGAe79GuyoTGWvPl7Djx+2hN9AL1qvWJ8 FpBssVFiqNSwsSM9IJx80/dUDIGvSUtP4JRY8s1lFw== X-Received: by 2002:a17:907:d2a:b0:6e0:963c:97d9 with SMTP id gn42-20020a1709070d2a00b006e0963c97d9mr28430774ejc.736.1648557051475; Tue, 29 Mar 2022 05:30:51 -0700 (PDT) MIME-Version: 1.0 References: <20220326165909.506926-1-benni@stuerz.xyz> <20220326165909.506926-9-benni@stuerz.xyz> In-Reply-To: <20220326165909.506926-9-benni@stuerz.xyz> From: Bartosz Golaszewski Date: Tue, 29 Mar 2022 14:30:40 +0200 Message-ID: Subject: Re: [PATCH 09/22] gpio-winbond: Use C99 initializers To: =?UTF-8?Q?Benjamin_St=C3=BCrz?= Cc: Andrew Lunn , Sebastian Hesselbarth , Gregory Clement , Russell King , linux@simtec.co.uk, Krzysztof Kozlowski , alim.akhtar@samsung.com, Thomas Gleixner , mingo@redhat.com, Borislav Petkov , dave.hansen@linux.intel.com, hpa@zytor.com, robert.moore@intel.com, "Rafael J . Wysocki" , lenb@kernel.org, 3chas3@gmail.com, laforge@gnumonks.org, Arnd Bergmann , Greg Kroah-Hartman , Mauro Carvalho Chehab , Tony Luck , James Morse , Robert Richter , Linus Walleij , mike.marciniszyn@cornelisnetworks.com, dennis.dalessandro@cornelisnetworks.com, jgg@ziepe.ca, pali@kernel.org, Dmitry Torokhov , isdn@linux-pingi.de, Benjamin Herrenschmidt , fbarrat@linux.ibm.com, ajd@linux.ibm.com, "David S . Miller" , Jakub Kicinski , Paolo Abeni , nico@fluxnic.net, loic.poulain@linaro.org, kvalo@kernel.org, pkshih@realtek.com, Bjorn Helgaas , Linux ARM , Linux Kernel Mailing List , linux-samsung-soc@vger.kernel.org, linux-ia64@vger.kernel.org, ACPI Devel Maling List , devel@acpica.org, linux-atm-general@lists.sourceforge.net, netdev , linux-edac@vger.kernel.org, "open list:GPIO SUBSYSTEM" , linux-rdma@vger.kernel.org, Linux Input , linuxppc-dev@lists.ozlabs.org, Linux Media Mailing List , wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org, linux-pci@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On Sat, Mar 26, 2022 at 6:00 PM Benjamin St=C3=BCrz wrot= e: > > This replaces comments with C99's designated > initializers because the kernel supports them now. > > Signed-off-by: Benjamin St=C3=BCrz > --- > 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] =3D { > - { /* 0 */ > + [0] =3D { > .dev =3D WB_SIO_DEV_GPIO12, > .enablereg =3D WB_SIO_GPIO12_REG_ENABLE, > .enablebit =3D WB_SIO_GPIO12_ENABLE_1, > @@ -266,7 +266,7 @@ static const struct winbond_gpio_info winbond_gpio_in= fos[6] =3D { > .warnonly =3D true > } > }, > - { /* 1 */ > + [1] =3D { > .dev =3D WB_SIO_DEV_GPIO12, > .enablereg =3D WB_SIO_GPIO12_REG_ENABLE, > .enablebit =3D WB_SIO_GPIO12_ENABLE_2, > @@ -277,7 +277,7 @@ static const struct winbond_gpio_info winbond_gpio_in= fos[6] =3D { > .datareg =3D WB_SIO_GPIO12_REG_DATA2 > /* special conflict handling so doesn't use conflict data= */ > }, > - { /* 2 */ > + [2] =3D { > .dev =3D WB_SIO_DEV_GPIO34, > .enablereg =3D WB_SIO_GPIO34_REG_ENABLE, > .enablebit =3D WB_SIO_GPIO34_ENABLE_3, > @@ -294,7 +294,7 @@ static const struct winbond_gpio_info winbond_gpio_in= fos[6] =3D { > .warnonly =3D true > } > }, > - { /* 3 */ > + [3] =3D { > .dev =3D WB_SIO_DEV_GPIO34, > .enablereg =3D WB_SIO_GPIO34_REG_ENABLE, > .enablebit =3D WB_SIO_GPIO34_ENABLE_4, > @@ -311,7 +311,7 @@ static const struct winbond_gpio_info winbond_gpio_in= fos[6] =3D { > .warnonly =3D true > } > }, > - { /* 4 */ > + [4] =3D { > .dev =3D WB_SIO_DEV_WDGPIO56, > .enablereg =3D WB_SIO_WDGPIO56_REG_ENABLE, > .enablebit =3D WB_SIO_WDGPIO56_ENABLE_5, > @@ -328,7 +328,7 @@ static const struct winbond_gpio_info winbond_gpio_in= fos[6] =3D { > .warnonly =3D true > } > }, > - { /* 5 */ > + [5] =3D { > .dev =3D WB_SIO_DEV_WDGPIO56, > .enablereg =3D WB_SIO_WDGPIO56_REG_ENABLE, > .enablebit =3D WB_SIO_WDGPIO56_ENABLE_6, > -- > 2.35.1 > Acked-by: Bartosz Golaszewski