Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8451891imu; Tue, 4 Dec 2018 08:34:16 -0800 (PST) X-Google-Smtp-Source: AFSGD/X64MVBoT2ZBJE8VLdjIHOa9ZUtwMLvw2NDzAWEOXCUilQ6KBwiKACHqkvo/V5taJ6TkRpU X-Received: by 2002:a17:902:c05:: with SMTP id 5mr20853717pls.155.1543941256883; Tue, 04 Dec 2018 08:34:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543941256; cv=none; d=google.com; s=arc-20160816; b=SABmE0mpF1DqcUTOhWA6AJlHsLdJfL6EXvQd55cvj6CnF1rclBHEyy4ndravNFZYU8 1oSI5YO8H/+ZkFR5h2kyckfvcg/iBE3ZjL2Vg4Wo/SPoVDu6U8laVgXwKU/R/cmiJ0CN xGT7X4gXj4lAOj66pgPxjsQgBbfaCYAsQ1NAqsdiTqCnoojXGEgXgA4nGdJXIn8P1etm Q2MepVlyyUJhmOLGIP8DcHM5zzW/KEiCxm9dudIrIEKfVw8Ny7xhLTtehJ90KzGYBlPr E+/J4rejjf6RJieVNRRjRA8uZXDIgrVIt6cqBKzU4ieXZn9E7gxvz+EzMfSXsLg5kFO4 VK9Q== 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=kIgGoCAWeiAFQXseJFDXrYSCTb6iPfQcTsbSbbFbHxNv6t4UnH8D0WrWX5550XzMjK 5xGqNtmbUYS41453oNICOzb/1bOvc9kaZT5DPxlcuvPuZufgCu7eAGWFPHIG5NLbIUeJ s8dqEMy0lWhiIGvsUZ3BQw/7WP2JVV2YwsZsYQuRoGm6l9t2LVFv0BFfG2LTDpUL4daD ca4cRYr4uFD7ZpRKUPtFpgwlXGRrifpqvN/bIOGqqQxi1F97xfoqfX9h8ql0n9J0aaJJ 4+bheT9se0uKsUaKKKL7IHU0QtQX63HivL7p9zbM55HwmVJ/Ey/vhuKPVZ+8z4hUJ0Wt oEIw== 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 r2si16077669pgk.389.2018.12.04.08.33.56; Tue, 04 Dec 2018 08:34:16 -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 S1727198AbeLDQam (ORCPT + 99 others); Tue, 4 Dec 2018 11:30:42 -0500 Received: from 8bytes.org ([81.169.241.247]:51484 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726461AbeLDQaH (ORCPT ); Tue, 4 Dec 2018 11:30:07 -0500 Received: by theia.8bytes.org (Postfix, from userid 1000) id EF4A73D8; Tue, 4 Dec 2018 17:30:04 +0100 (CET) From: Joerg Roedel To: iommu@lists.linux-foundation.org Cc: Robin Murphy , linux-kernel@vger.kernel.org, Joerg Roedel Subject: [PATCH 4/9] iommu/dma: Use helper functions to access dev->iommu_fwspec Date: Tue, 4 Dec 2018 17:29:57 +0100 Message-Id: <20181204163002.15800-5-joro@8bytes.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181204163002.15800-1-joro@8bytes.org> References: <20181204163002.15800-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