Skip to content

Commit

Permalink
vfio/mdpy: Convert to use vfio_register_group_dev()
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Greg Kroah-Hartman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alex Williamson <[email protected]>
  • Loading branch information
jgunthorpe authored and awilliam committed Jun 21, 2021
1 parent 09177ac commit 437e413
Showing 1 changed file with 88 additions and 71 deletions.
Loading

0 comments on commit 437e413

Please sign in to comment.