From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3C692C433FE for ; Tue, 11 Oct 2022 06:25:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:From:References:CC:To: Subject:MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=JiTsh+i+v+VCSYHFSomiV/TjXa0EnHJbVYOHKPUnNTA=; b=iGWROgvnVoPGHA FRywiA7xjEw/7MIEh5Bsvcr3AXx2u77xgyUh3z6nuoECjlVkw6HiKmsYGpzOJQgyym6tWr1C3UKXI zdjaRkRhtgtw9lMVlTRd3DuxuoX7oYMBzFsq+s9b6+UozAop140xsXOIpgqWiBR79C+6FtGxpKmsW 5Hge6956XmL41756e7ca/UZMs/pfn5j6t5f5fN9ueoT5nfrj+PCR2ycojKMP5dtBd74YdjNzv/JkH Wn5fZgLrMzXmTYAxGltOCoAd08+irauie+W1zfU3uEuBXSlov4b5wJlq1inUQpDrbeW8VIKd7yXsa Knz5MXlTwr4sjzjEHJ2Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oi8gd-003QCW-0J; Tue, 11 Oct 2022 06:24:19 +0000 Received: from mx08-00178001.pphosted.com ([91.207.212.93] helo=mx07-00178001.pphosted.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oi8fb-003PpM-BR for linux-arm-kernel@lists.infradead.org; Tue, 11 Oct 2022 06:23:16 +0000 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 29B2qCck029031; Tue, 11 Oct 2022 08:23:06 +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=6v4jn48G55j1zHu6u3iSPwnoOxrHr4uzOjtBt2iTrI4=; b=0uMnwiZ0mVoxSnnBVOwzYz8letyhQMeeqW6dWi8TT3vuX1k8Te3pTkTdkBLKm/8AexaR HiaiWTPqryv96rnes/yZjbSF0YLVNop9ldmw7ytb1xQy5gJ5kGYVMAryfqTyC+a7dRId qKCOahY7evDN1XileHvKFPO5F7YjZ7Ce/Bkm03879nuP+kGds589O8hD5T8ctjk/SHvh hkSVOl731ITPL8gfTupstixVwYP3fnOuse7eY25aJaSLdNuXb2g/pPOEjEZdozf6b74e RAGnbbzpaWF1mtrF6O5f8fZyMC/sPJ+H9fd2bxD2LCeRNHU9sC6/+d+ct8HnwYLh5Sy4 Rw== 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 3k31gprnwb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 11 Oct 2022 08:23:06 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id F3A9510002A; Tue, 11 Oct 2022 08:23:01 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id EF5712128D0; Tue, 11 Oct 2022 08:23:01 +0200 (CEST) Received: from [10.201.21.72] (10.75.127.119) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2375.31; Tue, 11 Oct 2022 08:23:01 +0200 Message-ID: <26cd3948-b86d-82c1-4b11-c28e8b8482b6@foss.st.com> Date: Tue, 11 Oct 2022 08:23:00 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [PATCH v1 1/1] pinctrl: st: Switch to use fwnode instead of of_node Content-Language: en-US To: Andy Shevchenko , Linus Walleij , , , CC: Dmitry Torokhov References: <20221010075615.43244-1-andriy.shevchenko@linux.intel.com> From: Patrice CHOTARD In-Reply-To: <20221010075615.43244-1-andriy.shevchenko@linux.intel.com> X-Originating-IP: [10.75.127.119] X-ClientProxiedBy: GPXDAG2NODE4.st.com (10.75.127.68) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-10-11_03,2022-10-10_02,2022-06-22_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221010_232315_706939_4A18236E X-CRM114-Status: GOOD ( 21.06 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 10/10/22 09:56, Andy Shevchenko wrote: > The OF node in the GPIO library is deprecated and soon > will be removed. > > GPIO library now accepts fwnode as a firmware node, so > switch the driver to use it. > > Signed-off-by: Andy Shevchenko > --- > 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 cf7f9cbe6044..987878c83349 100644 > --- a/drivers/pinctrl/pinctrl-st.c > +++ b/drivers/pinctrl/pinctrl-st.c > @@ -1175,7 +1175,7 @@ static int st_pctl_dt_calculate_pin(struct st_pinctrl *info, > > for (i = 0; i < info->nbanks; i++) { > chip = &info->banks[i].gpio_chip; > - if (chip->of_node == np) { > + if (chip->fwnode == of_fwnode_handle(np)) { > if (offset < chip->ngpio) > retval = chip->base + offset; > break; > @@ -1518,7 +1518,7 @@ static int st_gpiolib_register_bank(struct st_pinctrl *info, > bank->gpio_chip = st_gpio_template; > bank->gpio_chip.base = bank_num * ST_GPIO_PINS_PER_BANK; > bank->gpio_chip.ngpio = ST_GPIO_PINS_PER_BANK; > - bank->gpio_chip.of_node = np; > + bank->gpio_chip.fwnode = of_fwnode_handle(np); > bank->gpio_chip.parent = dev; > spin_lock_init(&bank->lock); > Reviewed-by: Patrice Chotard Thanks Patrice _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel