Linux IOMMU Development
 help / color / mirror / Atom feed
From: Joerg Roedel <joro-zLv9SwRftAIdnm+yROfE0A@public.gmane.org>
To: Will Deacon <will.deacon-5wv7dgnIgG8@public.gmane.org>,
	Robin Murphy <robin.murphy-5wv7dgnIgG8@public.gmane.org>,
	Lorenzo Pieralisi
	<lorenzo.pieralisi-5wv7dgnIgG8@public.gmane.org>,
	Alex Williamson
	<alex.williamson-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
	David Woodhouse <dwmw2-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
Cc: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org,
	Joerg Roedel <jroedel-l3A5Bk7waGM@public.gmane.org>,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: [PATCH 02/11] iommu: Rename struct iommu_device
Date: Thu,  9 Feb 2017 12:32:51 +0100	[thread overview]
Message-ID: <1486639981-32368-3-git-send-email-joro@8bytes.org> (raw)
In-Reply-To: <1486639981-32368-1-git-send-email-joro-zLv9SwRftAIdnm+yROfE0A@public.gmane.org>

From: Joerg Roedel <jroedel-l3A5Bk7waGM@public.gmane.org>

The struct is used to link devices to iommu-groups, so
'struct group_device' is a better name. Further this makes
the name iommu_device available for a struct representing
hardware iommus.

Signed-off-by: Joerg Roedel <jroedel-l3A5Bk7waGM@public.gmane.org>
---
 drivers/iommu/iommu.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c
index 0ee05bb..e4e8a93 100644
--- a/drivers/iommu/iommu.c
+++ b/drivers/iommu/iommu.c
@@ -55,7 +55,7 @@ struct iommu_group {
 	struct iommu_domain *domain;
 };
 
-struct iommu_device {
+struct group_device {
 	struct list_head list;
 	struct device *dev;
 	char *name;
@@ -374,7 +374,7 @@ static int iommu_group_create_direct_mappings(struct iommu_group *group,
 int iommu_group_add_device(struct iommu_group *group, struct device *dev)
 {
 	int ret, i = 0;
-	struct iommu_device *device;
+	struct group_device *device;
 
 	device = kzalloc(sizeof(*device), GFP_KERNEL);
 	if (!device)
@@ -449,7 +449,7 @@ int iommu_group_add_device(struct iommu_group *group, struct device *dev)
 void iommu_group_remove_device(struct device *dev)
 {
 	struct iommu_group *group = dev->iommu_group;
-	struct iommu_device *tmp_device, *device = NULL;
+	struct group_device *tmp_device, *device = NULL;
 
 	pr_info("Removing device %s from group %d\n", dev_name(dev), group->id);
 
@@ -484,7 +484,7 @@ void iommu_group_remove_device(struct device *dev)
 
 static int iommu_group_device_count(struct iommu_group *group)
 {
-	struct iommu_device *entry;
+	struct group_device *entry;
 	int ret = 0;
 
 	list_for_each_entry(entry, &group->devices, list)
@@ -507,7 +507,7 @@ static int iommu_group_device_count(struct iommu_group *group)
 static int __iommu_group_for_each_dev(struct iommu_group *group, void *data,
 				      int (*fn)(struct device *, void *))
 {
-	struct iommu_device *device;
+	struct group_device *device;
 	int ret = 0;
 
 	list_for_each_entry(device, &group->devices, list) {
-- 
1.9.1

  parent reply	other threads:[~2017-02-09 11:32 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-09 11:32 [PATCH 00/11 v3] Let IOMMU core know about individual IOMMUs Joerg Roedel
     [not found] ` <1486639981-32368-1-git-send-email-joro-zLv9SwRftAIdnm+yROfE0A@public.gmane.org>
2017-02-09 11:32   ` [PATCH 01/11] iommu: Rename iommu_get_instance() Joerg Roedel
     [not found]     ` <1486639981-32368-2-git-send-email-joro-zLv9SwRftAIdnm+yROfE0A@public.gmane.org>
2017-02-10 14:12       ` Robin Murphy
     [not found]         ` <baf8d059-8c74-baa4-1806-ca1e3733cd93-5wv7dgnIgG8@public.gmane.org>
2017-02-10 15:36           ` Joerg Roedel
2017-02-09 11:32   ` Joerg Roedel [this message]
2017-02-09 11:32   ` [PATCH 03/11] iommu: Introduce new 'struct iommu_device' Joerg Roedel
     [not found]     ` <1486639981-32368-4-git-send-email-joro-zLv9SwRftAIdnm+yROfE0A@public.gmane.org>
2017-02-09 20:42       ` kbuild test robot
2017-02-09 11:32   ` [PATCH 04/11] iommu: Add sysfs bindings for struct iommu_device Joerg Roedel
2017-02-09 11:32   ` [PATCH 05/11] iommu: Make iommu_device_link/unlink take a " Joerg Roedel
2017-02-09 11:32   ` [PATCH 06/11] iommu: Add iommu_device_set_fwnode() interface Joerg Roedel
     [not found]     ` <1486639981-32368-7-git-send-email-joro-zLv9SwRftAIdnm+yROfE0A@public.gmane.org>
2017-02-10 14:16       ` Robin Murphy
     [not found]         ` <417eee8c-4e1b-57f0-2c00-d6c3926ce66d-5wv7dgnIgG8@public.gmane.org>
2017-02-10 15:22           ` Joerg Roedel
     [not found]             ` <20170210152254.GI7339-zLv9SwRftAIdnm+yROfE0A@public.gmane.org>
2017-02-10 16:03               ` Robin Murphy
     [not found]                 ` <f770249b-ad98-10d8-ea79-dc10cef7f4df-5wv7dgnIgG8@public.gmane.org>
2017-02-10 16:11                   ` Joerg Roedel
     [not found]                     ` <20170210161122.GB18474-l3A5Bk7waGM@public.gmane.org>
2017-02-10 16:59                       ` Robin Murphy
2017-02-09 11:32   ` [PATCH 07/11] iommu/arm-smmu: Make use of the iommu_register interface Joerg Roedel
     [not found]     ` <1486639981-32368-8-git-send-email-joro-zLv9SwRftAIdnm+yROfE0A@public.gmane.org>
2017-02-10 14:20       ` Robin Murphy
     [not found]         ` <9bba214f-4d83-1e37-2df8-2f7db11f7d1f-5wv7dgnIgG8@public.gmane.org>
2017-02-10 15:25           ` Joerg Roedel
     [not found]             ` <20170210152553.GJ7339-zLv9SwRftAIdnm+yROfE0A@public.gmane.org>
2017-02-10 17:07               ` Robin Murphy
2017-02-09 11:32   ` [PATCH 08/11] iommu/msm: Make use of iommu_device_register interface Joerg Roedel
     [not found]     ` <1486639981-32368-9-git-send-email-joro-zLv9SwRftAIdnm+yROfE0A@public.gmane.org>
2017-02-10 14:35       ` Robin Murphy
     [not found]         ` <5bda5842-45b4-fc3c-7eea-351e4c2261b1-5wv7dgnIgG8@public.gmane.org>
2017-02-10 15:33           ` Joerg Roedel
     [not found]             ` <20170210153339.GK7339-zLv9SwRftAIdnm+yROfE0A@public.gmane.org>
2017-02-10 17:36               ` Robin Murphy
2017-02-09 11:32   ` [PATCH 09/11] iommu/mediatek: " Joerg Roedel
2017-02-09 11:32   ` [PATCH 10/11] iommu/exynos: " Joerg Roedel
     [not found]     ` <1486639981-32368-11-git-send-email-joro-zLv9SwRftAIdnm+yROfE0A@public.gmane.org>
2017-02-10 13:46       ` Marek Szyprowski
     [not found]         ` <9a1997dd-5835-cb9a-6478-7fb276151e52-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2017-02-10 13:59           ` Joerg Roedel
2017-02-09 11:33 ` [PATCH 11/11] iommu: Remove iommu_register_instance interface Joerg Roedel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1486639981-32368-3-git-send-email-joro@8bytes.org \
    --to=joro-zlv9swrftaidnm+yrofe0a@public.gmane.org \
    --cc=alex.williamson-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=dwmw2-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org \
    --cc=iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
    --cc=jroedel-l3A5Bk7waGM@public.gmane.org \
    --cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=lorenzo.pieralisi-5wv7dgnIgG8@public.gmane.org \
    --cc=robin.murphy-5wv7dgnIgG8@public.gmane.org \
    --cc=will.deacon-5wv7dgnIgG8@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox