Skip to content
This repository was archived by the owner on Oct 3, 2024. It is now read-only.

Commit 02b9bac

Browse files
jgunthorpezhiwang1
authored andcommitted
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: Jason Gunthorpe <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]> Signed-off-by: Zhi Wang <[email protected]> Link: http://patchwork.freedesktop.org/patch/msgid/[email protected] Reviewed-by: Kirti Wankhede <[email protected]> Reviewed-by: Zhi Wang <[email protected]>
1 parent 34b1aba commit 02b9bac

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

include/linux/mdev.h

-9
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ struct mdev_type;
1515
struct mdev_device {
1616
struct device dev;
1717
guid_t uuid;
18-
void *driver_data;
1918
struct list_head next;
2019
struct mdev_type *type;
2120
bool active;
@@ -66,14 +65,6 @@ struct mdev_driver {
6665
struct device_driver driver;
6766
};
6867

69-
static inline void *mdev_get_drvdata(struct mdev_device *mdev)
70-
{
71-
return mdev->driver_data;
72-
}
73-
static inline void mdev_set_drvdata(struct mdev_device *mdev, void *data)
74-
{
75-
mdev->driver_data = data;
76-
}
7768
static inline const guid_t *mdev_uuid(struct mdev_device *mdev)
7869
{
7970
return &mdev->uuid;

0 commit comments

Comments
 (0)