提交 2917f531 编写于 作者: J Jason Gunthorpe 提交者: Zhi Wang

vfio/mdev: Remove mdev drvdata

This is no longer used, remove it.

All usages were moved over to either use container_of() from a vfio_device
or to use dev_drvdata() directly on the mdev.
Signed-off-by: NJason Gunthorpe <jgg@nvidia.com>
Signed-off-by: NChristoph Hellwig <hch@lst.de>
Signed-off-by: NZhi Wang <zhi.a.wang@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20220411141403.86980-35-hch@lst.deReviewed-by: NKirti Wankhede <kwankhede@nvidia.com>
Reviewed-by: NZhi Wang <zhi.a.wang@intel.com>
上级 2aa72ec9
...@@ -15,7 +15,6 @@ struct mdev_type; ...@@ -15,7 +15,6 @@ struct mdev_type;
struct mdev_device { struct mdev_device {
struct device dev; struct device dev;
guid_t uuid; guid_t uuid;
void *driver_data;
struct list_head next; struct list_head next;
struct mdev_type *type; struct mdev_type *type;
bool active; bool active;
...@@ -66,14 +65,6 @@ struct mdev_driver { ...@@ -66,14 +65,6 @@ struct mdev_driver {
struct device_driver driver; struct device_driver driver;
}; };
static inline void *mdev_get_drvdata(struct mdev_device *mdev)
{
return mdev->driver_data;
}
static inline void mdev_set_drvdata(struct mdev_device *mdev, void *data)
{
mdev->driver_data = data;
}
static inline const guid_t *mdev_uuid(struct mdev_device *mdev) static inline const guid_t *mdev_uuid(struct mdev_device *mdev)
{ {
return &mdev->uuid; return &mdev->uuid;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册