diff options
author | Jason Gunthorpe <jgg@nvidia.com> | 2021-06-17 16:22:18 +0200 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2021-06-21 15:29:25 -0600 |
commit | 681c1615f8914451cfd432ad30e2f307b6490542 (patch) | |
tree | 9e2f349d623e950b6b0ac993d96ed74a5c6b878c /lib/refcount.c | |
parent | 437e41368c01fba8c220d7ca2f6b9d7fde92beee (diff) | |
download | linux-stable-681c1615f8914451cfd432ad30e2f307b6490542.tar.gz linux-stable-681c1615f8914451cfd432ad30e2f307b6490542.tar.bz2 linux-stable-681c1615f8914451cfd432ad30e2f307b6490542.zip |
vfio/mbochs: Convert to use vfio_register_group_dev()
This is straightforward conversion, the mdev_state is actually serving as
the vfio_device and we can replace all the mdev_get_drvdata()'s and the
wonky dead code with a simple container_of().
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20210617142218.1877096-11-hch@lst.de
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'lib/refcount.c')
0 files changed, 0 insertions, 0 deletions