Skip to contentSkip to conversation

vfio: fix documentation

PATCH Applied dongbo (E) 3 participants 3 messages May 7, 2018 – May 8, 2018

Subsystems (2)
lore
Share & tools
lore

dongbo (E)

author
#0 lore raw

PATCH 1/1 vfio: fix documentation

From: Dong Bo <[email protected]>

Update vfio_add_group_dev description to match the current API.

---
 Documentation/vfio.txt | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
Documentation/vfio.txt +2 -3
index ef6a511..f1a4d3c 100644
@@ -252,15 +252,14 @@ into VFIO core.  When devices are bound and unbound to the driver,
 the driver should call vfio_add_group_dev() and vfio_del_group_dev()
 respectively::
 
-	extern int vfio_add_group_dev(struct iommu_group *iommu_group,
-	                              struct device *dev,
+	extern int vfio_add_group_dev(struct device *dev,
 				      const struct vfio_device_ops *ops,
 				      void *device_data);
 
 	extern void *vfio_del_group_dev(struct device *dev);
 
 vfio_add_group_dev() indicates to the core to begin tracking the
-specified iommu_group and register the specified dev as owned by
+iommu_group of the specified dev and register the dev as owned by
 a VFIO bus driver.  The driver provides an ops structure for callbacks
 similar to a file operations structure::
 
Signature · 4 lines
1.9.1


.
Reviewed-by on v1 1/1
#1 lore raw
Quoted 21 lines · On Mon, 7 May 2018 11:02:10 +0800 "dongbo (E)" <[email protected]> wrote:

From: Dong Bo <[email protected]>

Update vfio_add_group_dev description to match the current API.

---
 Documentation/vfio.txt | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
Documentation/vfio.txt +1 -2
index ef6a511..f1a4d3c 100644
@@ -252,15 +252,14 @@ into VFIO core.  When devices are bound and unbound to the driver,
 the driver should call vfio_add_group_dev() and vfio_del_group_dev()
 respectively::
 
-	extern int vfio_add_group_dev(struct iommu_group *iommu_group,
-	                              struct device *dev,
+	extern int vfio_add_group_dev(struct device *dev,
 				      const struct vfio_device_ops *ops,

Documentation/vfio.txt into VFIO core. When devices are bound and unbound to the driver, · line 265

Quoted 10 lines
Documentation/vfio.txt +1 -1
 				      void *device_data);
 
 	extern void *vfio_del_group_dev(struct device *dev);
 
 vfio_add_group_dev() indicates to the core to begin tracking the
-specified iommu_group and register the specified dev as owned by
+iommu_group of the specified dev and register the dev as owned by
 a VFIO bus driver.  The driver provides an ops structure for callbacks
 similar to a file operations structure::