Message ID | 20240216144027.185959-4-krzysztof.kozlowski@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-68752-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp564947dyb; Fri, 16 Feb 2024 06:54:45 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUsjo5GoqZrnkLIjnfHjdwjm/IgK3rSW0iGo6afkBF/QCO18cjBmF22fR9ToQDxXC5JKcxbiKiIY0ZvLZvaOEM2KNckrQ== X-Google-Smtp-Source: AGHT+IGgKwxIkzjYtyF5bJnvb5CONp6a+yrxAmUQaeaoJVaDQvavnJkrWW4jX5SkllcYXmm9h+J/ X-Received: by 2002:a05:6a20:4c1b:b0:19e:b196:ddb7 with SMTP id fm27-20020a056a204c1b00b0019eb196ddb7mr4583986pzb.15.1708095285103; Fri, 16 Feb 2024 06:54:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708095285; cv=pass; d=google.com; s=arc-20160816; b=Rv/yLrosYXvSThljBYTmW1KdjhUEDEp3kGv1oE5H9lUOOHqhEc8XdP0Gfrjtr7TJBj x2cktIlrDzPRzWrueXJfMTncLCHqCefa1OqSkkkRowdeCwPA55dcsTqN9QD90bnnURLW SGzjH0/MmT+s5w8wW8s+aQ42x3AmL9VzD2Y+ADH1EP/V6hwNTKyyiZ51kXJRaCGN4Hr5 P4jra4dvzVsd841mXFLFc/Ru9Toq1XhfMHYmrGch552lrmZo8D6MHnzQJTHvkqUxCLxR orRld4ckeZOb+Vbem1M4l+DzQCtXabz1INonW7SvU3KmX8IDr/YlHPigrhfRiIa9D410 cTjA== 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:to:from:dkim-signature; bh=ddHRp/a7ql2hO4wtU3P1Kr5z86y1yTWMkn8d+hM85z0=; fh=EF9fxA8ikzxTSw1veeTgyjsBbrZY/kU74fYbN1dFuzQ=; b=MaAENYLOX8H82gk786mGRttikgT9+Lm1ysm7kW3qz7CiXwENCaBsOF1kqUMmPW0tUZ ECiIYXEBrF1+UJkPtR2D1pYbO5X2Isopo+UWos90HeEtF25DI8h91w8r25BzcwhpoUYf 2W98Q908XN14ZowQxzMpbBXOhjl7ll7gy0MzzyULncO0M467QPQCcJ5dM+7j+71l7DU6 CS9Rqa3qS71Fb96tVHZOXkllRIaxlxB+ZYOuh+BaFCo6daInBwpNLwC0K811lH4d0jjb 1jazDZnp+Pak7Ky5C86ae2fcj/Y/dn7UPJUf3TR+qwnRpXKqasRsQ6HwmQ4dwu4cxM6X FUiA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=W49GTaCy; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-68752-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68752-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id g16-20020aa79dd0000000b006e1171b2d57si18404pfq.351.2024.02.16.06.54.44 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 06:54:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68752-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=W49GTaCy; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-68752-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68752-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id C8ADDB22BA8 for <ouuuleilei@gmail.com>; Fri, 16 Feb 2024 14:41:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 59FD412FB20; Fri, 16 Feb 2024 14:40:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="W49GTaCy" Received: from mail-ej1-f44.google.com (mail-ej1-f44.google.com [209.85.218.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8090B12F585 for <linux-kernel@vger.kernel.org>; Fri, 16 Feb 2024 14:40:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708094443; cv=none; b=ZhmsAjouxAm+KOjbJjBFm6Uo123VHuQ/hoTEQo7O21noN9cyA3wFUff/mjZb54+afTDYGNWzfWhfxYqQUx4UhUBeRlcNeQeyQrypcwM80j51ft08mx+gjAGjaWOClGIa0J5RI9q7euxSYH9tzZOFJ/xd4Izn5SWtkMSzyff2KfU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708094443; c=relaxed/simple; bh=pD34V4Xis6XvSKzWyAyrm6YM5UjXrZYGLUr4MspUCqE=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=UpfwWrAOnXsQWdTxnjOGsaXEQMDfNrIkgM4ZROLteU/7E9dzmqPvEqe7tzNhdgmN3Fh4B+GV25p7pRkgxnR0koWoxlab0xXk9nrAkMlLGyA04695fd8ctHI7AHv5Fqj7qw1HkkVbb54gqqucs8GLARuOyI1F6YPyQYzbbQvVIMc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=W49GTaCy; arc=none smtp.client-ip=209.85.218.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ej1-f44.google.com with SMTP id a640c23a62f3a-a3d159220c7so118248666b.2 for <linux-kernel@vger.kernel.org>; Fri, 16 Feb 2024 06:40:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708094439; x=1708699239; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=ddHRp/a7ql2hO4wtU3P1Kr5z86y1yTWMkn8d+hM85z0=; b=W49GTaCyJs11FwPkJ+dUvl8jE2fMAalodGP6ajU/LhFoLdb+Y1eKZ88yYH30g+//gN XjOjsWtW5MqSrgpb72vRmcY8RXXCj0ET3rRtEKZahhg5Xbq1BKXSeAObBVpjqSel0F8l miuw52CGK9EjBkxYqP4ZNJCn0BPq02EmRadZ5qoqVdkIV0MOrJoY5y1ArluR6aHSP6KM QpUb5SC61Ds9K5yanjidGNDbYeHFjS42Sd4POQ2HOQ+a4BNbXkMAGR7MSWeiyNCt9Hpp IqnLIjgGVV73epu2PL7OtbL4j86Ycpw0lYq5074zysRTYjDMIWFTiacVg/Bi9QVNzye3 Vf2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708094439; x=1708699239; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ddHRp/a7ql2hO4wtU3P1Kr5z86y1yTWMkn8d+hM85z0=; b=nTwzYCPFKKLbGXdy5QI4codMu8A6jRzpDpS7A32CT6Noq0KRcmwDeBU6TGjIDSyog2 VT56mczcjaovsiPPtO/b8yTSuE2UgoPfrJfdHGlkGWPUId1DxKNuS0JulxrjRy0/pQbi +1I43Uc4QeyzwTZ1K4cMwZCu5DdK8+I0qX98fK5Xsp8gK+S9IuqGwEu6POeU8xCroFa/ LoxELaWKqYhAPIYmsAPstcBiB0Tcv3fJ/FJ9MCIJzBWvEKjiEOCBtwfB+OUvrgr+ActJ iVN/VrEsUss+2s/RxFZUzrmTxIrDk27PaMkfK2clgZ2Y/nX6CbGJBmhqV37YBPu/qzCS SeJA== X-Forwarded-Encrypted: i=1; AJvYcCUKetP5R+tVs6p8SEMq4C+LoNA+EkVK3ZrFAgCIdJOYeHcPnmJf5L+5igfzgrhCpDMdodEPHoNDqlugIhqZGp/5RWAm6q3nflOQpURV X-Gm-Message-State: AOJu0YzjASfKl6DeyiMvoAbQD5pEa5wzbwef/Ea6ZNlF7qUFxmhrwYan FooRJjtMdcKRm7xdYDw1gBoW7VFw2toOjjIz80VlhzT0GB4MZphk19Dcn/WAVno= X-Received: by 2002:a17:906:d7bb:b0:a3d:704:d688 with SMTP id pk27-20020a170906d7bb00b00a3d0704d688mr3675983ejb.47.1708094438802; Fri, 16 Feb 2024 06:40:38 -0800 (PST) Received: from krzk-bin.. ([78.10.207.130]) by smtp.gmail.com with ESMTPSA id a8-20020a170906670800b00a3ce3c5b2a4sm1592942ejp.195.2024.02.16.06.40.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 06:40:38 -0800 (PST) From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> To: Hector Martin <marcan@marcan.st>, Sven Peter <sven@svenpeter.dev>, Alyssa Rosenzweig <alyssa@rosenzweig.io>, Joerg Roedel <joro@8bytes.org>, Will Deacon <will@kernel.org>, Robin Murphy <robin.murphy@arm.com>, Rob Clark <robdclark@gmail.com>, Marek Szyprowski <m.szyprowski@samsung.com>, Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>, Alim Akhtar <alim.akhtar@samsung.com>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Yong Wu <yong.wu@mediatek.com>, Matthias Brugger <matthias.bgg@gmail.com>, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>, Heiko Stuebner <heiko@sntech.de>, Orson Zhai <orsonzhai@gmail.com>, Baolin Wang <baolin.wang@linux.alibaba.com>, Chunyan Zhang <zhang.lyra@gmail.com>, Chen-Yu Tsai <wens@csie.org>, Jernej Skrabec <jernej.skrabec@gmail.com>, Samuel Holland <samuel@sholland.org>, Thierry Reding <thierry.reding@gmail.com>, Krishna Reddy <vdumpa@nvidia.com>, Jonathan Hunter <jonathanh@nvidia.com>, Jean-Philippe Brucker <jean-philippe@linaro.org>, asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-tegra@vger.kernel.org, virtualization@lists.linux.dev Subject: [PATCH 4/4] iommu: re-use local fwnode variable in iommu_ops_from_fwnode() Date: Fri, 16 Feb 2024 15:40:27 +0100 Message-Id: <20240216144027.185959-4-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240216144027.185959-1-krzysztof.kozlowski@linaro.org> References: <20240216144027.185959-1-krzysztof.kozlowski@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791067721365768589 X-GMAIL-MSGID: 1791067721365768589 |
Series |
[1/4] iommu: constify pointer to bus_type
|
|
Commit Message
Krzysztof Kozlowski
Feb. 16, 2024, 2:40 p.m. UTC
iommu_ops_from_fwnode() stores &iommu_spec->np->fwnode in local
variable, so use it to simplify the code (iommu_spec is not changed
between these dereferences).
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
drivers/iommu/of_iommu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iommu/of_iommu.c b/drivers/iommu/of_iommu.c index 719652b60840..3afe0b48a48d 100644 --- a/drivers/iommu/of_iommu.c +++ b/drivers/iommu/of_iommu.c @@ -29,7 +29,7 @@ static int of_iommu_xlate(struct device *dev, !of_device_is_available(iommu_spec->np)) return -ENODEV; - ret = iommu_fwspec_init(dev, &iommu_spec->np->fwnode, ops); + ret = iommu_fwspec_init(dev, fwnode, ops); if (ret) return ret; /*