diff options
author | Christoph Hellwig <hch@lst.de> | 2022-04-11 17:13:57 +0300 |
---|---|---|
committer | Zhi Wang <zhi.a.wang@intel.com> | 2022-04-21 14:36:56 +0300 |
commit | 978cf586ac35f34604e2d252a51b71192c39f1e4 (patch) | |
tree | d8d79d500d36f2d67a3e857119978eaaf657cf82 /drivers/gpu/drm/drm_encoder_slave.c | |
parent | 0e09f4066ad11bcb4fa1b2d1a6f07fc0dc9788f9 (diff) | |
download | linux-978cf586ac35f34604e2d252a51b71192c39f1e4.tar.xz |
drm/i915/gvt: convert to use vfio_register_emulated_iommu_dev
This is straightforward conversion, the intel_vgpu already has a pointer
to the vfio_dev, which can be replaced with the embedded structure and
we can replace all the mdev_get_drvdata() with a simple container_of().
Based on an patch from Jason Gunthorpe.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Zhi Wang <zhi.a.wang@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20220411141403.86980-29-hch@lst.de
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Zhi Wang <zhi.a.wang@intel.com>
Diffstat (limited to 'drivers/gpu/drm/drm_encoder_slave.c')
0 files changed, 0 insertions, 0 deletions