Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2653890rdb; Wed, 4 Oct 2023 07:41:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEYa/7WjdVm3jdkahJ4MBsRw3OiiwAOWkPttZr4RT61DfPNDeAZw8p7TrL6ICxl09Z3NGuG X-Received: by 2002:a05:6a00:1511:b0:690:cb8f:3320 with SMTP id q17-20020a056a00151100b00690cb8f3320mr3016953pfu.24.1696430495169; Wed, 04 Oct 2023 07:41:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696430495; cv=none; d=google.com; s=arc-20160816; b=rI/fjBUgGkFZNcBPMZWC+uBk6D8w4wlngSn4NAMx+AXZ0yrl8v7DRamXXA504JFuAW kdDHceFDvUtiXyasFkkSYsiBsmk++3SuuLuUhp3FsHBPY8c2afMEbj1e/yiqGWmWdvML 8DDWLK/VgN92k0eNmFxQOut0Nzrp0BnmG3Fn1PyC0PiYkjr8+HwlCZa6abUV2/mp86Xi dgchdTwCv9xKOUjOwGAPrU5yq4iZBilxjtLyD46t9MlMajqRhRpUHXAvBgzkas5d6qxJ VL/u6qk/dFN5x1jamZ+lHCrbQCDNuKpv46tM2pttz4pnoGl/1wcxlpTdi4ukYU8j+JcK dBOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=KPQruG3VfMmKQVdEVQ7aQu3ubE96ICMR1N0cn0SYCOI=; fh=eWLaCT1tFDkrC80bZwmShWPnfsl4pStCKOVZXJvNavw=; b=0EHDCPbWZ83m+Yc2yMBeuXuJeW+DIfhOGHLDxJQab1SC95kA9dccvFAF9duZ+u5ZQT OKuH6Kvm3c5+GGAXHFX/V/PhV52bW8tz9YVbnc0UC/vpu3zyADlWSnSFUY45hCujTrmy 5Lsi/uJZfeLuEwKQk4/48g7DrpAI0akLu/IPb26vm3gxnOwIjSKt2JD8QXtYxp3T4eLs RPlKRfqWXvW4AgorJITWcSWN3z16BpGR6y6pKEKi17m+6bFqLPao3e+mq5BnZ0b+xUNy WM4YVujS3HHdF+oP0r6eIcEuSybTQ4GzpErIw3n8InmcTKZKGejoN/z+OHkIB8GJyYrS y7qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=4SM7JDlO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id y7-20020a636407000000b00578c9003932si3665370pgb.808.2023.10.04.07.41.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 07:41:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=4SM7JDlO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id F0C6580EBC87; Wed, 4 Oct 2023 07:41:33 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233625AbjJDOld (ORCPT + 99 others); Wed, 4 Oct 2023 10:41:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233097AbjJDOlc (ORCPT ); Wed, 4 Oct 2023 10:41:32 -0400 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A23FC0; Wed, 4 Oct 2023 07:41:28 -0700 (PDT) Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 394ArQHU024373; Wed, 4 Oct 2023 16:41:18 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= selector1; bh=KPQruG3VfMmKQVdEVQ7aQu3ubE96ICMR1N0cn0SYCOI=; b=4S M7JDlOvwkA8lz+wS51Xd5ASNYCGrt56H+5c2GdEWIGo0Qi+AbfUA59bjKhEHsatM 38rsxgm0bFyo3qYV30v5KBk7SE+LBJ1z4JDhv1c2IQ7hz3Wrb7HpZ/ZMT/pA2mwR 4GLDK7N/QhGqcJpIi7Sj1Oo9wWOpAbtSrzgaMARfL16t67kYpc4tWKJW0eRH4Brh abMx7Bu+TAXrHHktZ/G/vEQZ7Ao5qZqsCpi66vkDUwzeZmCVMvDXoBwmouLNrErl /xw8fD5SrdKwR6azuCGX6FCnI5eYC3QDhRs2m5HpJoJVi4Efzexw+HmUSOLnIPRb nX0Dz/rBg9+5A2Cj3xvQ== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3te8t51t9w-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 04 Oct 2023 16:41:18 +0200 (MEST) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 336C3100053; Wed, 4 Oct 2023 16:41:17 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 1039925225D; Wed, 4 Oct 2023 16:41:17 +0200 (CEST) Received: from [10.201.20.38] (10.201.20.38) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Wed, 4 Oct 2023 16:41:16 +0200 Message-ID: <7754c3e4-fdb9-0976-9b91-97f0938d7afa@foss.st.com> Date: Wed, 4 Oct 2023 16:41:15 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH 29/36] pinctrl: st: use new pinctrl GPIO helpers Content-Language: en-US To: Bartosz Golaszewski , Linus Walleij , Andy Shevchenko CC: , , Bartosz Golaszewski , Maxime Coquelin , Alexandre Torgue , References: <20231003145114.21637-1-brgl@bgdev.pl> <20231003145114.21637-30-brgl@bgdev.pl> From: Patrice CHOTARD In-Reply-To: <20231003145114.21637-30-brgl@bgdev.pl> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.201.20.38] X-ClientProxiedBy: SHFCAS1NODE1.st.com (10.75.129.72) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-04_07,2023-10-02_01,2023-05-22_02 X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,NICE_REPLY_A,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 04 Oct 2023 07:41:34 -0700 (PDT) On 10/3/23 16:51, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > Replace the pinctrl helpers taking the global GPIO number as argument > with the improved variants that instead take a pointer to the GPIO chip > and the controller-relative offset. > > Signed-off-by: Bartosz Golaszewski > --- > drivers/pinctrl/pinctrl-st.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/pinctrl/pinctrl-st.c b/drivers/pinctrl/pinctrl-st.c > index c1f36b164ea5..ec763572ab3e 100644 > --- a/drivers/pinctrl/pinctrl-st.c > +++ b/drivers/pinctrl/pinctrl-st.c > @@ -719,7 +719,7 @@ static void st_gpio_set(struct gpio_chip *chip, unsigned offset, int value) > > static int st_gpio_direction_input(struct gpio_chip *chip, unsigned offset) > { > - pinctrl_gpio_direction_input(chip->base + offset); > + pinctrl_gpio_direction_input_new(chip, offset); > > return 0; > } > @@ -730,7 +730,7 @@ static int st_gpio_direction_output(struct gpio_chip *chip, > struct st_gpio_bank *bank = gpiochip_get_data(chip); > > __st_gpio_set(bank, offset, value); > - pinctrl_gpio_direction_output(chip->base + offset); > + pinctrl_gpio_direction_output_new(chip, offset); > > return 0; > } Reviewed-by: Patrice Chotard Thanks Patrice