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 DDB70C4332F for ; Mon, 10 Oct 2022 07:57:23 +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=AMulvGDVJ7XZoGTDWnlLh1goxYbW5o8BtjazJ7zGQOU=; b=3WItrQR94Wr+DH u8wkBaFwa7vhPQkYuetyEeu7xRnz90t42RGb/PDdiuBozSoYe/g4Dmw/TWZBN9TPSEDEmjcuZpMPs VliT119c+NGgRgAUfzQF8PR9ZNDoWXvXbyB2XUG7DzT7yvMd/GDRN5w2d+ZskjINhpiaMvT1PQPLB FYYNx27SRUuYSm1iPZhjjnVlUIO8/1xhDXKKIfjnBiZED2o5WzX8Omkc/mz4NbuElfz2/ERSDLeBp RvraQfwJrOgLHa5ajAFlVqMRgUk20fvZ7KX8VgeloZMt2g5By+RkaeO2BlapSTXEcUsUoOzg+QRxY Z7XgPTu2qsC6gN3iQ31w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ohndv-00HRQU-JA; Mon, 10 Oct 2022 07:56:07 +0000 Received: from mga17.intel.com ([192.55.52.151]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ohnds-00HROV-QX for linux-arm-kernel@lists.infradead.org; Mon, 10 Oct 2022 07:56:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1665388564; x=1696924564; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=HID0mHHHZgyVwH5oNtP1G2gM2V0I0iEupf35hgDLXWE=; b=Be6jAowVvfbfZeGvAoo9+BKD8Kob93qKYScfEmfNJyp0xLiwX45xnunl AzCD0m+RdJNiKioO4lHOJtnrf4tu/0AXNlzFokNw4vJ5ApT++Bn6VyHsP S9/cK0CY1Lsj1KOGE3R/zGDOLHoONFEArY/ZZlpT1Fllaxr9DQpQh4VW7 eIaBzYum4QH+yyjYQeU70hj+wzyzvb/mVGiSY+Yw3570ZoofYSyQaBWWA NwUV2kiaThVOYCCDVTeCLbmHV3uR5oDN//ZRcFgj7H8U6n5GTcYPJUHgO aAJQEs90Jj0fcQ8wn7OUT4xFMqOsT8HYw5GK8XY7lDAFN3oLXYieQmp8Q A==; X-IronPort-AV: E=McAfee;i="6500,9779,10495"; a="284547020" X-IronPort-AV: E=Sophos;i="5.95,173,1661842800"; d="scan'208";a="284547020" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Oct 2022 00:56:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10495"; a="694539307" X-IronPort-AV: E=Sophos;i="5.95,173,1661842800"; d="scan'208";a="694539307" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga004.fm.intel.com with ESMTP; 10 Oct 2022 00:55:59 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 614561E0; Mon, 10 Oct 2022 10:56:20 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , Linus Walleij , linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Patrice Chotard , Dmitry Torokhov Subject: [PATCH v1 1/1] pinctrl: st: Switch to use fwnode instead of of_node Date: Mon, 10 Oct 2022 10:56:15 +0300 Message-Id: <20221010075615.43244-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-20221010_005604_885906_8075B34F X-CRM114-Status: GOOD ( 14.51 ) 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 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); -- 2.35.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel