Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1663391lqe; Mon, 8 Apr 2024 16:41:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVVkLynlwt/QFCWmWAxhVTrRwb7m2tpwnjpB8O8egHUx2VA1oWz9Fyr10h+fZK5df7O0BuFaPvpBD21QBc7i0BxFTgbWPjthvhVUFi80g== X-Google-Smtp-Source: AGHT+IGKoVvkhRE12oiNcZfxfsqlsn1KEblicv05gcQQpui3thurQ9JIIQvk44mIBOnXu0CDbmTV X-Received: by 2002:a17:906:a850:b0:a51:8672:66e4 with SMTP id dx16-20020a170906a85000b00a51867266e4mr1123284ejb.22.1712619675153; Mon, 08 Apr 2024 16:41:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712619675; cv=pass; d=google.com; s=arc-20160816; b=TkuaQyxUmdkcLqKuFqzvAJ6z8iYpDcfXCBVCYW1kZytaPvGLE4IwYP45F0XGITJY1F j5sayePnq6DFUIRoZVw7+SnuwcYpRFrr5uc6NfdzHqqEemYTtO4+JH2Ts5NwEca8Tqv9 KrAaPuFXZuRmYXaLTe7O2/r/IIOtWVZ9bTuAsm7I2Vae2jkvrXlPvxpSpNhSE98nwEm0 LzngP2Db6gEozoBDaapzytawBXVKqk/JZBYRNGDeDNON5hcIm23Wx6xJfQ645MXwRlJ4 21Kr1UtKNzbdfArbial7VOVJSOPvA+8l4tb1yh5llKe3pDJvmc3PDt7Ig1tmiv8hM2t1 TaOw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=ce2C3mFUjKHfphm5glLdo0kYS8B23G4tb8eLLffI+F0=; fh=mzyqPqQw0TZ1iy3oL5tPi7bX4b1nQ9xSAVT/SEq5oIA=; b=U9WykGyS7a/gWxPNMKNlBrCtBJG2AL7ht/hY6drIcRFUMvEBqV5sRWjqnNK+pzclxm Mmd85iUw63B3jf+lUifkcF0LMpm6HGoMs/SKUzuh7j9P0ZIcUY8Y9f6MkggODgk1HBzH Xtlp9+uV9bUeW1GO6mqzMSWvp77CblpUaiKzQmRgRsy7YRupz8NaFCfSYg4FzU3AFoTH brVUhgjRFbr/TI7mE+cAheTtXvZNbW/07oPSqgSehnHVtxbFUAkp6X5519yTQbiUJF9D kltSlwK7mJGOS7jTfJpFsvueWX5ZuTkA9Xeb/PUgVTZOve+X4agHmb1CnsuTmW6xC2gh c3nQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=CE3xrwCY; arc=pass (i=1 spf=pass spfdomain=alliedtelesis.co.nz dkim=pass dkdomain=alliedtelesis.co.nz dmarc=pass fromdomain=alliedtelesis.co.nz); spf=pass (google.com: domain of linux-kernel+bounces-136022-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136022-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=alliedtelesis.co.nz Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id n13-20020a05640205cd00b0056dfa65446fsi4115240edx.362.2024.04.08.16.41.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 16:41:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-136022-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=CE3xrwCY; arc=pass (i=1 spf=pass spfdomain=alliedtelesis.co.nz dkim=pass dkdomain=alliedtelesis.co.nz dmarc=pass fromdomain=alliedtelesis.co.nz); spf=pass (google.com: domain of linux-kernel+bounces-136022-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136022-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=alliedtelesis.co.nz Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id DDF1C1F25008 for ; Mon, 8 Apr 2024 23:41:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7EAEB149DF3; Mon, 8 Apr 2024 23:41:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=alliedtelesis.co.nz header.i=@alliedtelesis.co.nz header.b="CE3xrwCY" Received: from gate2.alliedtelesis.co.nz (gate2.alliedtelesis.co.nz [202.36.163.20]) (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 EEA4F171A1 for ; Mon, 8 Apr 2024 23:40:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.36.163.20 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712619663; cv=none; b=mF58f9JVga/WEcx7oCpNLUDNOkq2LR5bMaPdYzKcGH669VBxOYBbSpOQZawwXNPF3w0Xe+vGUUcDJDASltJ+xNwseKUi/39XQTAXu+Kvl7eowmUWgwP/UspExanYcfy3w61IeSllHvdAa5fZZX++VKYQd9H3TSAZWoVa6PtZ9fQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712619663; c=relaxed/simple; bh=nGVBkZiKyNJu572sTsUpZ6tZsvjqorg2/fE5SwF8ubY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=aM33B0ERvoScPEDRMhq2xkLHLCwAclMWKHwK7kW5Q7LuyX/wgPzHi1E4z8ktzTp9Y9MqH+8pmZaMhF6Li6Z2mpp0fSWt+3L1kLiNgMBCU1zZ6gtJYbPEYzr1bO6kYPuFcX1dPOXCvNZLBI5CklrwcpCq8YmaF3pWPLqo8AwAoEs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=alliedtelesis.co.nz; spf=pass smtp.mailfrom=alliedtelesis.co.nz; dkim=pass (2048-bit key) header.d=alliedtelesis.co.nz header.i=@alliedtelesis.co.nz header.b=CE3xrwCY; arc=none smtp.client-ip=202.36.163.20 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=alliedtelesis.co.nz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alliedtelesis.co.nz Received: from svr-chch-seg1.atlnz.lc (mmarshal3.atlnz.lc [10.32.18.43]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by gate2.alliedtelesis.co.nz (Postfix) with ESMTPS id 56C3E2C023D; Tue, 9 Apr 2024 11:40:52 +1200 (NZST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail181024; t=1712619652; bh=ce2C3mFUjKHfphm5glLdo0kYS8B23G4tb8eLLffI+F0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CE3xrwCYAXgCKQ1ghoDmBjulloVo/VtAdpNIbvq4UNzpCPeTP+rt6xqb3qmeFsh2Q r44nTA2dbsbhjGzOJGXhvQ7g6E6LSjI2kua1lGo/Ryw15MpQb4WCxm/e+Ew6JFGb7o x9cMyPtz11JmNrVdRYKK2OHwibl4YwChRL/bfYCIa7Ubq6ZfhCrHqTdGxZPmyw+BRk rrc+sjRCw99MkaTG9NRX3MTR5k5BSCvxru+fL7w7udx1GHJsPXnK421TC0XCn9xaoI kvyu0R3DX+xFqEySBcxSMo1kxKZ0kqJ353AXYTTSWQHDmhRGtrNRYDRb0MIPE0ZdBC bpCZFwHzTmD6w== Received: from pat.atlnz.lc (Not Verified[10.32.16.33]) by svr-chch-seg1.atlnz.lc with Trustwave SEG (v8,2,6,11305) id ; Tue, 09 Apr 2024 11:40:52 +1200 Received: from chrisp-dl.ws.atlnz.lc (chrisp-dl.ws.atlnz.lc [10.33.22.30]) by pat.atlnz.lc (Postfix) with ESMTP id 3255113EE52; Tue, 9 Apr 2024 11:40:52 +1200 (NZST) Received: by chrisp-dl.ws.atlnz.lc (Postfix, from userid 1030) id 2EEA828058C; Tue, 9 Apr 2024 11:40:52 +1200 (NZST) From: Chris Packham To: gregkh@linuxfoundation.org, guanghuifeng@linux.alibaba.com, cleech@redhat.com, njavali@marvell.com, baolin.wang@linux.alibaba.com Cc: linux-kernel@vger.kernel.org, Chris Packham Subject: [PATCH v2 1/2] uio_pdrv_genirq: convert to use device_property APIs Date: Tue, 9 Apr 2024 11:40:48 +1200 Message-ID: <20240408234050.2056374-2-chris.packham@alliedtelesis.co.nz> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240408234050.2056374-1-chris.packham@alliedtelesis.co.nz> References: <20240408234050.2056374-1-chris.packham@alliedtelesis.co.nz> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-SEG-SpamProfiler-Analysis: v=2.4 cv=AuZN3/9P c=1 sm=1 tr=0 ts=66148084 a=KLBiSEs5mFS1a/PbTCJxuA==:117 a=raytVjVEu-sA:10 a=0-5qEPbCpBJHDBHC09kA:9 a=3ZKOabzyN94A:10 X-SEG-SpamProfiler-Score: 0 x-atlnz-ls: pat Convert the uio_pdrv_genirq driver to use the device_property_* APIs instead of the of_property_* ones. This allows UIO interrupts to be defined via an ACPI overlay using the Device Tree namespace linkage. Signed-off-by: Chris Packham --- Notes: Changes in v2: - Remove extraneous newline drivers/uio/uio_pdrv_genirq.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/uio/uio_pdrv_genirq.c b/drivers/uio/uio_pdrv_genirq.= c index 63258b6accc4..796f5be0a086 100644 --- a/drivers/uio/uio_pdrv_genirq.c +++ b/drivers/uio/uio_pdrv_genirq.c @@ -23,8 +23,8 @@ #include =20 #include -#include -#include +#include +#include =20 #define DRIVER_NAME "uio_pdrv_genirq" =20 @@ -110,7 +110,7 @@ static void uio_pdrv_genirq_cleanup(void *data) static int uio_pdrv_genirq_probe(struct platform_device *pdev) { struct uio_info *uioinfo =3D dev_get_platdata(&pdev->dev); - struct device_node *node =3D pdev->dev.of_node; + struct fwnode_handle *node =3D dev_fwnode(&pdev->dev); struct uio_pdrv_genirq_platdata *priv; struct uio_mem *uiomem; int ret =3D -EINVAL; @@ -127,11 +127,11 @@ static int uio_pdrv_genirq_probe(struct platform_de= vice *pdev) return -ENOMEM; } =20 - if (!of_property_read_string(node, "linux,uio-name", &name)) + if (!device_property_read_string(&pdev->dev, "linux,uio-name", &name)) uioinfo->name =3D devm_kstrdup(&pdev->dev, name, GFP_KERNEL); else uioinfo->name =3D devm_kasprintf(&pdev->dev, GFP_KERNEL, - "%pOFn", node); + "%pfwP", node); =20 uioinfo->version =3D "devicetree"; /* Multiple IRQs are not supported */ --=20 2.43.2