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 143D3C433FE for ; Mon, 10 Oct 2022 18:00:35 +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:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=OkwKL2J989JVPq5o35qTfKhiaoLgtucan9jK47vMvdQ=; b=Wj+wQaXMsw8OH4 i7mGvxZFCyNlpVlOVkGZipN1S0Ta/5CF0+zX4lDJwNmnp/NC76Gw+lLiujV3P9tHPv4KIk0GD3tFc qjWdCHDL/kat2liPEtpYG5mo+oT80JGXdYA90X7EVrEo+zMhlHKsrLzdm+BMUlybhi956bi3nLJ4v fkQnCHlv1UxrAUNJCDfxuWaB9FSCQ+23ena9y4IrLuZodZq6Zdn+y6bTIBVEASsfsFGau+6eB5XWo jW2vlWQMbg42JjeHqUUD7IrMxEKrFPFQ7PZIj1rDJvHucKa/GiwWT/dH8N5VAReLUlLMywK2UJ5WC MDwmqwWsyNixIX0XxyLA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ohx3t-001jS9-Uf; Mon, 10 Oct 2022 17:59:34 +0000 Received: from mail-pg1-x52a.google.com ([2607:f8b0:4864:20::52a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ohx3r-001jRP-4H for linux-arm-kernel@lists.infradead.org; Mon, 10 Oct 2022 17:59:32 +0000 Received: by mail-pg1-x52a.google.com with SMTP id 128so3119290pga.1 for ; Mon, 10 Oct 2022 10:59:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=zN/KjsCEx2zMtEPwS1BKpAmSphZD0IO6nl7YyDXtL7I=; b=fXqfedqDgMytgQwcbHuYJGLHuxZEy/2DeKE1BMP/BK7EE8oS6TfYEqNPVIyhccsp/l LUlusXsTq9E2Ee2ia5OV3eHfC+28hTurg5cErnPhMRmfAmLWsTrt+Bdg1pXJ6WMEXTmv KaMiGz9iIvUV5CzTiGzZr2gUV2KBq8lt8zITykuIuU/FlsoHhrKPEpFFUq/I19wFxjn3 RzZTDCYcVo1NkapqwtvsbbpER0pJkuyat96JdDk8/LPZ4ptMUJay4/jxN4KZthYsRSQw 2IufrFfGB0edloAJcxBhv7jzYJGoolZmjPXy1+NxUc2YJhq/BcHLrypgFeQeBEPpj44F Xlyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=zN/KjsCEx2zMtEPwS1BKpAmSphZD0IO6nl7YyDXtL7I=; b=Pn3QyU0hwyXlTQg4tnOzKGaT5025Ot/kFlNmtVteEL2EyUsBl9cIleh1hodV3AlpV9 47fN6rnHlTDgbUVFd/glioakeHQy2t6TaBNqqdiXq5CQIDpzlNTkXlSYJhpsumlsnVSM 9tbn4/puNLVsTE/YcP++by92ITAXcimHJWQaKwXu2Q2jm2JqA9MniiS0fBF5KHIDK/gb Lc9JBtng/BwtG3RTwNAU+khGBSOaKJXfRgrCulng1qlwj2kp4qGgDArdnPlFX8vHuDn9 EGr8YuvcI49HjMWeirDTcjllYF5Ov3U8DQg1dAZnuuFXEDHts1fwzLwTwUuqVK3vkc36 gZ5g== X-Gm-Message-State: ACrzQf30H31qqo3JTjZPq8G2Fjcy85SgiO0FTm4aLImoIayhr60Nchf1 zrrdxCiWFQ+Ek8DOe/UOuTs= X-Google-Smtp-Source: AMsMyM5T1heBkPii4UShM09nkXeqTs9kRM0l2fFArAYuUIGT76FaBWaRlltgwohNj//2CUSAPg83dg== X-Received: by 2002:a63:814a:0:b0:460:9253:bf8e with SMTP id t71-20020a63814a000000b004609253bf8emr10193428pgd.469.1665424769299; Mon, 10 Oct 2022 10:59:29 -0700 (PDT) Received: from google.com ([2620:15c:9d:2:bff:9bd3:c2da:5f42]) by smtp.gmail.com with ESMTPSA id z4-20020aa79e44000000b0054223a0185asm7237591pfq.161.2022.10.10.10.59.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Oct 2022 10:59:28 -0700 (PDT) Date: Mon, 10 Oct 2022 10:59:25 -0700 From: Dmitry Torokhov To: Andy Shevchenko Cc: Linus Walleij , linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Patrice Chotard Subject: Re: [PATCH v1 1/1] pinctrl: st: Switch to use fwnode instead of of_node Message-ID: References: <20221010075615.43244-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20221010075615.43244-1-andriy.shevchenko@linux.intel.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221010_105931_210134_CF97627E X-CRM114-Status: GOOD ( 22.00 ) 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 Mon, Oct 10, 2022 at 10:56:15AM +0300, 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 Reviewed-by: Dmitry Torokhov > --- > 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); > > -- > 2.35.1 > Thanks. -- Dmitry _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel