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 A5633C433F5 for ; Tue, 4 Oct 2022 12:55:59 +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:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=ffNCrheofNqRsxHis5SpkZVbxtppZIQ7gKkGMOYLhTw=; b=TFfFMkvGmZd7CW 6wHqRSChGFR+ecPD34MBL6HhXCeYRtwxNHL9l7q2IHxw1iIBtrWPp+lnnGVB2/W6ZfOqLO4O1K0EZ Ge2S5BSecYWyRwb2TLUoaiAxOHFofZoyG5KffSJIAkIDTTMPqwKjNTyaYJl2Ai0uy4u1t+bSEgNI6 XgbU2RiLJcB6IHCRIhDPztUtnIZK+tGRWg3xMHtwFgidHHtXsI5jF7+hY9LJFnx8atvlIGvG6CA9N DxTuWYnGLGok+dGS2FTzc+S+8V095l2uZTO8rCjDf7e5TzPHOJ6B2q10ay44OkKCx+MMGp7y2vcMC IMmLf+m/kC5+7azXKGRA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ofhRW-009g9h-Oi; Tue, 04 Oct 2022 12:54:38 +0000 Received: from mga09.intel.com ([134.134.136.24]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ofhRU-009g95-Gp for linux-arm-kernel@lists.infradead.org; Tue, 04 Oct 2022 12:54:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1664888076; x=1696424076; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=34fkB9PiTMeL4NylLu89W/O34IlUWd9gKTytveVgpEw=; b=jn7EUn59HqAV0Do4zmdMMndrYk90DH4U7zJner4yRNsmAq48JxDR4quX yQ3zGcDaEmZAmOxsCsne5iPU2tedGi2RbW+3SeaKmtTKHIyLqvNctfF2m xmZ4+VK93jGlx1KEXY+EM+v6QjjVkS2OP0gWLXqIkaEh+ECp/+2sJTUVA oDDxFz1Gp8gbsZyPClCulU6Ycnz7+dpywil+ag/AKkbh18STaqOOg3x4W J5QPyTgGLIFXlwITgtBFIIrBNIeMQ0qsQIUwlz54XaiIf7gA6cWLuCw7y BbZ5k0+wmA9WOvq2Dkxo6Go8Gs/tScW4xnUkCYk91W3Jl6CI8PeyIY/Uw A==; X-IronPort-AV: E=McAfee;i="6500,9779,10490"; a="303859827" X-IronPort-AV: E=Sophos;i="5.93,157,1654585200"; d="scan'208";a="303859827" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Oct 2022 05:54:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10490"; a="575017691" X-IronPort-AV: E=Sophos;i="5.93,157,1654585200"; d="scan'208";a="575017691" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga003.jf.intel.com with ESMTP; 04 Oct 2022 05:54:32 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 1031C17E; Tue, 4 Oct 2022 15:54:51 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Patrice Chotard , Linus Walleij , Dmitry Torokhov Subject: [PATCH v1 1/1] pinctrl: st: Avoid using of_node member of struct gpio_chip Date: Tue, 4 Oct 2022 15:54:49 +0300 Message-Id: <20221004125449.67679-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221004_055436_633863_613B0239 X-CRM114-Status: GOOD ( 14.52 ) 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 The of_node member of the struct gpio_chip is obsoleted and shouldn't be used. It will be removed in the future. Replace its use in st_pctl_dt_calculate_pin() by comparing the fwnode pointers. Fixes: e75729b2f63f ("pinctrl: st: stop abusing of_get_named_gpio()") Signed-off-by: Andy Shevchenko --- drivers/pinctrl/pinctrl-st.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/pinctrl-st.c b/drivers/pinctrl/pinctrl-st.c index cf7f9cbe6044..ac24d07338a4 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; -- 2.35.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel