diff options
author | Dong Bo <dongbo4@huawei.com> | 2018-05-06 23:02:10 -0400 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2018-05-08 11:16:41 -0400 |
commit | f318a44e15c16307b3f95751b674cb5d63789eb6 (patch) | |
tree | 9171ed1fc92e34141059d0fd6c69c736846c42b9 | |
parent | 1897e8f394c50124f90d6c1be672f05846438bf8 (diff) |
vfio: fix documentation
Update vfio_add_group_dev description to match the current API.
Signed-off-by: Dong Bo <dongbo4@huawei.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
-rw-r--r-- | Documentation/vfio.txt | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Documentation/vfio.txt b/Documentation/vfio.txt index ef6a5111eaa1..f1a4d3c3ba0b 100644 --- a/Documentation/vfio.txt +++ b/Documentation/vfio.txt | |||
@@ -252,15 +252,14 @@ into VFIO core. When devices are bound and unbound to the driver, | |||
252 | the driver should call vfio_add_group_dev() and vfio_del_group_dev() | 252 | the driver should call vfio_add_group_dev() and vfio_del_group_dev() |
253 | respectively:: | 253 | respectively:: |
254 | 254 | ||
255 | extern int vfio_add_group_dev(struct iommu_group *iommu_group, | 255 | extern int vfio_add_group_dev(struct device *dev, |
256 | struct device *dev, | ||
257 | const struct vfio_device_ops *ops, | 256 | const struct vfio_device_ops *ops, |
258 | void *device_data); | 257 | void *device_data); |
259 | 258 | ||
260 | extern void *vfio_del_group_dev(struct device *dev); | 259 | extern void *vfio_del_group_dev(struct device *dev); |
261 | 260 | ||
262 | vfio_add_group_dev() indicates to the core to begin tracking the | 261 | vfio_add_group_dev() indicates to the core to begin tracking the |
263 | specified iommu_group and register the specified dev as owned by | 262 | iommu_group of the specified dev and register the dev as owned by |
264 | a VFIO bus driver. The driver provides an ops structure for callbacks | 263 | a VFIO bus driver. The driver provides an ops structure for callbacks |
265 | similar to a file operations structure:: | 264 | similar to a file operations structure:: |
266 | 265 | ||