Message ID | 20240216144027.185959-4-krzysztof.kozlowski@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org> 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 B9A05C48BC4 for <linux-mediatek@archiver.kernel.org>; Fri, 16 Feb 2024 14:40:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To: Cc:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=ddHRp/a7ql2hO4wtU3P1Kr5z86y1yTWMkn8d+hM85z0=; b=3mh9SmSh1wszlpin6LETpa7rEP Bj77ghZdy+wUrTkxfc3QmWOb42D1ggC2BTiTaYlciNKsI1T6/Y70FToRZX+uix5fZrqbRq6j2nk0F GNZ7UKXgHles43lvIIYpeM4U8ct7mtoUbLntkXMqmOVAxfZEXvRioOdPEGUCpu5hmkhPiEICLHfrx MXadBp8KfuGTO53+29vkRkaLvLTkttBOQLhvsRD5ZvBhxueu18etFzpa80zGWkSaiPmjjvvVD2ThC uYOd7voPdQZgr2D0lDgtbwDtbHYn0Iw9sYGBP+UTb5lXswTkDPViO+QyG/W3RYmLiTCUUg/LFp5j7 gpkhW9pg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1razOZ-00000002d9U-33ph; Fri, 16 Feb 2024 14:40:55 +0000 Received: from mail-ej1-x632.google.com ([2a00:1450:4864:20::632]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1razOK-00000002cwp-3RzX for linux-mediatek@lists.infradead.org; Fri, 16 Feb 2024 14:40:43 +0000 Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-a3d82926ed2so105038266b.0 for <linux-mediatek@lists.infradead.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=lists.infradead.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=mALWrGfCuanbZB4Sbwbb2rGhCZUe6wqvI6Oghn7Q3AdtI85qf9eGn+eWJrZiEZE+89 5buvZln+dPVfAn9aKeenu6C6m7k4BDIY7DAImvTTG1rvr9RVKqjD0+zZlyrgCpx5MTbc CaLmp6UqDJUpYMAnzp1RAbAnTzQlPSwuRmPWUjxbiLQ5Y9AZyHvgVLyzRkYY93oJXQoI p+2xvgbqJ7y7w+XmNMz2++dooJ1ERIWYvk6konGp313vVrWs4pfPQDaEhfHyF7Ywu1Hh zLLZdCMLfBV+GNjA6h7EDr9Q5kmGgQzwhGzPgEzdlK7hNTAoE2RdxPEVJGPT7tFPslet 1g9A== 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=dF+tMshl1sNWoEVUo5E7ZECoWiRrbf7N1XcLODI039a6iLWatD0Ia0GhcnPNr74XdI 8C+HISYNgDyNUNXE3+qqTZCOFFQL/cqQ07PbsH003fFM3QCNG7QtPv3CUudV7e4Bh6dM Fjk3pB4Jnb4Mid2QKGAciws/lTxGZATGd7D/xXNxHTKf5K3d7IPi1BSVYQsju37y0ijb KVS0o5u3zo4xa6Fp2Kx4iDF5yo+2mWWPB3fDxpvD2mdQ5Z8SorDomjC7DiFpRT6VKu+O Jy7xopkdZYOlYrB6uiRX7o3572pil4R3KzYqZuCJHntwnuNNoSAAY2L0/g6Z0pHPG8Jy DkWg== X-Forwarded-Encrypted: i=1; AJvYcCW80QAEBbe6gd/erLVUVO7qsncfri5Q6He0COnJiwd1LXbx8+MeZX+unK9GIyBXlx8KgBrQT9EYxWiFSHWvfgE3lJYZ+0H6KRzHPHxtHcSxzDSY X-Gm-Message-State: AOJu0YzI7a41KGqM3yB7/ViyuVywsCnUvqMwM3VXMiDP+NMn1TJp3ikA aZaxRRFPNHSwbTVCWj8SQIbABHcBuA8/uaqOdXXWAqJnA4KIZHDLfdWxcZ9xhUE= X-Google-Smtp-Source: AGHT+IFjUr0pwHx7I9NJd2MhgZLwiZF/Q3I4EAlN6VBXxRxf0gB7BEu6U93gT2kjFbtxE6rZ4t4ByQ== 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> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240216_064041_057162_846CFB40 X-CRM114-Status: GOOD ( 11.78 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-mediatek.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-mediatek>, <mailto:linux-mediatek-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-mediatek/> List-Post: <mailto:linux-mediatek@lists.infradead.org> List-Help: <mailto:linux-mediatek-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-mediatek>, <mailto:linux-mediatek-request@lists.infradead.org?subject=subscribe> Sender: "Linux-mediatek" <linux-mediatek-bounces@lists.infradead.org> Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org |
Series |
[1/4] iommu: constify pointer to bus_type
|
expand
|
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; /*
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(-)