Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp566362imw; Thu, 14 Jul 2022 06:50:16 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sU53v9sfKPswHZpffrQiI9i6v8j6FAFYEO4Ze2W2FSje+FMkVEUCizpgiYW9R2SytNKq1w X-Received: by 2002:a63:5a1e:0:b0:411:f24a:a78 with SMTP id o30-20020a635a1e000000b00411f24a0a78mr7696276pgb.519.1657806616383; Thu, 14 Jul 2022 06:50:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657806616; cv=none; d=google.com; s=arc-20160816; b=ksZfNRQDkuqlETvhcEPw/Sqcc4jnf4zCMrP5g7HD7HzHbBCNE8piJaSjOc7kRgw8Z/ qgWZZ8JpcQO8hYKBolTrGf8JXFywHVGfJzCkIRD3vizVmxotAxPQd6qMan69dFNk+/Se 76JyvsGjFk3AsxgaQ/1wIZhjLn54FtpAftjBeKriOAe1Vi+enfnVuOmo9wjZ3oLMDqc0 TffztCogjMXNo8SJ23D2OMW0b7pjhvLX5REVjKXgw7Vn3vxQkGxGsAOwQkXETQrq+9VW 4YzhhVNdIq7XOems1KBB4qfZXf2Cw6C915RFSSthnnLG3JDg2DR6n/EuLpYy8jqrnmNm 1S9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=MRwG+zlBQ+kmeFEt4Mjc7sgEiz7bh2APqSKI/QbwyJk=; b=pXVTES5brbL7gYQRUiR3zME5uA9Pkg5dGDAfjHOxc2WkpoID5QpwNQo7Qmw9Ku5bhG 2/SmmZr1nGloWigh5kopTYsDEJPVGoNWi526mKDuil/qqcAO4TB+xtN1KlDbYkUTMUxj 6rJqWq5Daa/Z/ydkUcnpDiY38SmKVCTv0lssjMigGkMfK9pfJphuOJAE7g3zH/GW6x6t Q41ugJxRLdYfVWH/0y33vFYT0JElvRZmuL+dnX2n5KWMD2Ob/qCmADERCqKqqzc4H57Z ZZM1ZTJoKs4bwmjW0gD/p22bPch+06pUODgsUga0bKKC6fUVunFQp5s010OgKDZMmoXW wmXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="JX1n/jFG"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 9-20020a630009000000b004128a3f4d3asi1855677pga.593.2022.07.14.06.50.03; Thu, 14 Jul 2022 06:50:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@gmail.com header.s=20210112 header.b="JX1n/jFG"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239694AbiGNNPV (ORCPT + 99 others); Thu, 14 Jul 2022 09:15:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239689AbiGNNPP (ORCPT ); Thu, 14 Jul 2022 09:15:15 -0400 Received: from mail-yw1-x1132.google.com (mail-yw1-x1132.google.com [IPv6:2607:f8b0:4864:20::1132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 686B249B7C; Thu, 14 Jul 2022 06:15:14 -0700 (PDT) Received: by mail-yw1-x1132.google.com with SMTP id 00721157ae682-31c89111f23so16891557b3.0; Thu, 14 Jul 2022 06:15:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=MRwG+zlBQ+kmeFEt4Mjc7sgEiz7bh2APqSKI/QbwyJk=; b=JX1n/jFGRiKmk8qdje4WBbxBW3K6poXkLNK7oNx7J1BajqurACE5r7MuoikJsrHlyq WHslv+Mhg2/b5ZawLhmhZvZzeegJpH7HlUck0TRMdu7acvWoIq+gPAOuzTUsRCYiTHNh 051n6kX1f+IRKf2Q8q9/ZOzaF1pclqMdiV/6Yhiq7enWeEqBAon6e353IAhXYMcSAV1m QPVdC0p0S8ZN/pChTDD8AqdgwNcSuU33NCm69+6aFXoZ4xJ5eJnp9w13uKcluXfzIY8X qu0pJzKokIFX0SjPraAq0RRCAy3dfnqJkxkTlLkji9XSwut6G5rk4PGB2pHVEC58OEqT JAAw== 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; bh=MRwG+zlBQ+kmeFEt4Mjc7sgEiz7bh2APqSKI/QbwyJk=; b=utmpJ3iSVQe6xU2kqO8q6WvP1HGMvEenQrpW/P6bHUbQW2DfHQt/iWvzZBHDfP6WpV 3LE6TkdkC+QUG0ZGWNh7YcgQztitIyfc552YetiBYnOAwfks/7NGmQ5+UBh40V2lNpFa wcI2iTCplnwzZPuyYiaXd4JwveQo2cvhZoHCzcoItItlAH6lBpWB5z2ub22aoo1qmGHQ xfcjp2QHg+aeYfthEQ3trjsLkH4FoppXlzDZaTD1/I5nCPtw0v21z1o7/VYneuGs0xjU RcFV+0cWK6dVg3cHP4qtqmL7QPIWojjkEP6rT6fcj3P/EIEXvl3njf6AZ/v6VrU4F5Vf dN9w== X-Gm-Message-State: AJIora/BQLCcVSjvREzDbB7Ib9y8uJX3oBbxzmQh29AQ0iUj6dEcMYTN Iean75TzsHluVxqxn/9X0UJdLBYOGe2tICSkkNc= X-Received: by 2002:a81:4986:0:b0:31d:388b:d08d with SMTP id w128-20020a814986000000b0031d388bd08dmr9458913ywa.185.1657804513550; Thu, 14 Jul 2022 06:15:13 -0700 (PDT) MIME-Version: 1.0 References: <20220714122322.63663-1-tmaimon77@gmail.com> <20220714122322.63663-3-tmaimon77@gmail.com> In-Reply-To: From: Andy Shevchenko Date: Thu, 14 Jul 2022 15:14:37 +0200 Message-ID: Subject: Re: [PATCH v2 2/2] pinctrl: nuvoton: add NPCM8XX pinctrl and GPIO driver To: Krzysztof Kozlowski Cc: Tomer Maimon , Avi Fishman , Tali Perry , Joel Stanley , Patrick Venture , Nancy Yuen , Benjamin Fair , Linus Walleij , Rob Herring , Krzysztof Kozlowski , =?UTF-8?Q?Jonathan_Neusch=C3=A4fer?= , zhengbin13@huawei.com, OpenBMC Maillist , "open list:GPIO SUBSYSTEM" , Linux Kernel Mailing List , devicetree Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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-kernel@vger.kernel.org On Thu, Jul 14, 2022 at 2:29 PM Krzysztof Kozlowski wrote: > On 14/07/2022 14:23, Tomer Maimon wrote: ... > > +static int npcm8xx_pinctrl_probe(struct platform_device *pdev) > > +{ Temporary variable, i.e. struct device *dev = &pdev->dev; > > + struct npcm8xx_pinctrl *pctrl; > > + int ret; > > + > > + pctrl = devm_kzalloc(&pdev->dev, sizeof(*pctrl), GFP_KERNEL); > > + if (!pctrl) > > + return -ENOMEM; > > + > > + pctrl->dev = &pdev->dev; > > + dev_set_drvdata(&pdev->dev, pctrl); > > + > > + pctrl->gcr_regmap = > > + syscon_regmap_lookup_by_phandle(pctrl->dev->of_node, "nuvoton,sysgcr"); > > + if (IS_ERR(pctrl->gcr_regmap)) > > + return dev_err_probe(pctrl->dev, PTR_ERR(pctrl->gcr_regmap), "Failed to find nuvoton,sysgcr property\n"); Will help to shorten the above line(s). > Please wrap your code according to Linux coding style - @80. -- With Best Regards, Andy Shevchenko