vfio/mdpy: Convert to use vfio_register_group_dev()
authorJason Gunthorpe <jgg@nvidia.com>
Thu, 17 Jun 2021 14:22:17 +0000 (16:22 +0200)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 21 Jun 2021 21:29:25 +0000 (15:29 -0600)
commit437e41368c01fba8c220d7ca2f6b9d7fde92beee
tree4763fa31926cfaa8560ac4c44a8ab40684381713
parent09177ac9192198bec24a81c822ebeef4197c3c8b
vfio/mdpy: 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-10-hch@lst.de
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
samples/vfio-mdev/mdpy.c