Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp584618imu; Tue, 11 Dec 2018 04:22:31 -0800 (PST) X-Google-Smtp-Source: AFSGD/VE1Duh3bv5six7yPH9l3RhOsnAyTHTKGIz1Cue8Ks+xajujmuo0FjCAr2OvVYhgSkeRTWb X-Received: by 2002:a63:f658:: with SMTP id u24mr14519161pgj.267.1544530951649; Tue, 11 Dec 2018 04:22:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544530951; cv=none; d=google.com; s=arc-20160816; b=rKy6yLRTPdSV/FjBzdk8GAFRz0sXfjqwMCmV+G9yP3fIzhlNYMH1+6CtDd2humahcB 2acccRybBEq+J12vL7ZN8YYAIzouCx/l03ndG5sM9JZWPCf3LiwusgnSqy6cK/KXwTh9 JPsqhKQWu/D88fb/mdNDiLibzmaJ2fk57o0AWui8Hf6q+wI0mkqCnYu1s/9D+4vxmybb DMyBJ9SI8K/qTZSbhmxIWmJn+GfIXbXGq+G0LcIoA9eh+4DOZGJaMvKqZNiy1iSI+9/M XdGjj92mkGWK9e09PMmSaAUz4YSXC0mLUI03E+l6PszjnCw8lTfc37lyXdY+RJ3w2SiQ 8gSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=u6kWJChunAzjpXXC5/+uSH1IyBVILOIgddpUId3cUo8=; b=En2at1FC3NzaFIsCBH1erusgG+YQM7Dl2AA7dg4gHn/Yx8CfytO8hLUWU4DKjyz5TS fYoO3Kqp0vZjgL6K7NTVYaA0GeagQpSRNJAMI+ZpClsnzCP8MozzOGgpA1eNOoiHXj+H 5jpsvSe7lHnmc3DLK6Pzv1J7EWNz4Rv0YXgTiUfKywVkulpZgMRX9K9u7yZMhOVVMd+K F4up6+ONVOsv91NKuL4RCRYC57Z+TrxVAEv+vTQ7otnSqN4H5960ANTK6CH+Ago39V4J VgDBXSG/ZBNgIBcvTx4vPM+Qi2bP8e9KTxF8QCaRspkwJWLAR/Af8yYTNbqqguECewRZ 6CLA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e184si12728074pfg.185.2018.12.11.04.22.16; Tue, 11 Dec 2018 04:22:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726508AbeLKMTj (ORCPT + 99 others); Tue, 11 Dec 2018 07:19:39 -0500 Received: from 8bytes.org ([81.169.241.247]:53134 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726366AbeLKMTO (ORCPT ); Tue, 11 Dec 2018 07:19:14 -0500 Received: by theia.8bytes.org (Postfix, from userid 1000) id B045E533; Tue, 11 Dec 2018 13:19:12 +0100 (CET) From: Joerg Roedel To: iommu@lists.linux-foundation.org Cc: Lorenzo Pieralisi , Hanjun Guo , Sudeep Holla , Will Deacon , Robin Murphy , Joerg Roedel , Matthias Brugger , Rob Clark , Thierry Reding , linux-kernel@vger.kernel.org, Joerg Roedel Subject: [PATCH 4/9] iommu/dma: Use helper functions to access dev->iommu_fwspec Date: Tue, 11 Dec 2018 13:19:05 +0100 Message-Id: <20181211121910.5604-5-joro@8bytes.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181211121910.5604-1-joro@8bytes.org> References: <20181211121910.5604-1-joro@8bytes.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Joerg Roedel Use the new helpers dev_iommu_fwspec_get()/set() to access the dev->iommu_fwspec pointer. This makes it easier to move that pointer later into another struct. Signed-off-by: Joerg Roedel --- drivers/iommu/dma-iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iommu/dma-iommu.c b/drivers/iommu/dma-iommu.c index d1b04753b204..2b1c6912fbcc 100644 --- a/drivers/iommu/dma-iommu.c +++ b/drivers/iommu/dma-iommu.c @@ -177,7 +177,7 @@ EXPORT_SYMBOL(iommu_put_dma_cookie); void iommu_dma_get_resv_regions(struct device *dev, struct list_head *list) { - if (!is_of_node(dev->iommu_fwspec->iommu_fwnode)) + if (!is_of_node(dev_iommu_fwspec_get(dev)->iommu_fwnode)) iort_iommu_msi_get_resv_regions(dev, list); } -- 2.17.1