From patchwork Thu Aug 22 22:58:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 822825 Received: from fgw20-7.mail.saunalahti.fi (fgw20-7.mail.saunalahti.fi [62.142.5.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3A84312B72 for ; Thu, 22 Aug 2024 22:58:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.142.5.81 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724367503; cv=none; b=Sq8hDM29c/2hDqoFkWMDEoprMRPmFFDDU8MMDquHXp3/6IdznmXWTmh71vgB5IMQ0kuNz+eqTIsjHahYPrRtn+sNX0ZUl9qX8vi4RPlFXhQcTzKOMfXN6D+71cImXFAalK38jCNrsm/DE9CiUePCpKk3fDxynFqyoF8RwnkXo48= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724367503; c=relaxed/simple; bh=XP59DpnvPpz3OTugVZRRK2XvnbQkKUHgfixv7fVy6R8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=E1XZaoSOrq+EGr3tWeJ7z0Gsu90A0bkuZuqgE3o3p11fK/Y7sZhdRl49m8B+TI2r0kg6TzRCq4qHbnpYKflRrOMBknt8F3OUjjtKfedGzszPfKAUHk+iA7bC9uzyfxLTcMMRTfcbXVU6+9cySM+asY/ztybQEwX6hMdZ9R9EEqc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com; spf=fail smtp.mailfrom=gmail.com; arc=none smtp.client-ip=62.142.5.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=gmail.com Received: from localhost (88-113-25-87.elisa-laajakaista.fi [88.113.25.87]) by fgw23.mail.saunalahti.fi (Halon) with ESMTP id 0605c0c0-60da-11ef-822f-005056bdfda7; Fri, 23 Aug 2024 01:58:19 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Linus Walleij , Bartosz Golaszewski , Nobuhiro Iwamatsu Subject: [PATCH v1 1/1] gpio: visconti: Replace of_node_to_fwnode() with more suitable API Date: Fri, 23 Aug 2024 01:58:18 +0300 Message-ID: <20240822225818.707550-1-andy.shevchenko@gmail.com> X-Mailer: git-send-email 2.46.0 Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 of_node_to_fwnode() is a IRQ domain specific implementation of of_fwnode_handle(). Replace the former with more suitable API. Signed-off-by: Andy Shevchenko --- drivers/gpio/gpio-visconti.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpio/gpio-visconti.c b/drivers/gpio/gpio-visconti.c index 6734e7e1e2a4..ebc71ecdb6cf 100644 --- a/drivers/gpio/gpio-visconti.c +++ b/drivers/gpio/gpio-visconti.c @@ -8,6 +8,7 @@ * Nobuhiro Iwamatsu */ +#include #include #include #include @@ -15,8 +16,8 @@ #include #include #include +#include #include -#include /* register offset */ #define GPIO_DIR 0x00 @@ -202,7 +203,7 @@ static int visconti_gpio_probe(struct platform_device *pdev) girq = &priv->gpio_chip.irq; gpio_irq_chip_set_chip(girq, &visconti_gpio_irq_chip); - girq->fwnode = of_node_to_fwnode(dev->of_node); + girq->fwnode = dev_fwnode(dev); girq->parent_domain = parent; girq->child_to_parent_hwirq = visconti_gpio_child_to_parent_hwirq; girq->populate_parent_alloc_arg = visconti_gpio_populate_parent_fwspec;