diff options
author | 2024-03-21 14:38:18 -0700 | |
---|---|---|
committer | 2024-03-22 14:25:56 -0700 | |
commit | 008aa86a09ba623e563d7777353f6ca2a391424d (patch) | |
tree | d0976216deff40ab7a3d32f95dd4db49d5a4ef46 | |
parent | drm/xe: Fix END redefinition (diff) | |
download | linux-rng-008aa86a09ba623e563d7777353f6ca2a391424d.tar.xz linux-rng-008aa86a09ba623e563d7777353f6ca2a391424d.zip |
drm/xe: Remove redundant functions to get xe
xe_device.h implements these helpers, just use them.
Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240321213818.72311-1-lucas.demarchi@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
-rw-r--r-- | drivers/gpu/drm/xe/xe_hw_engine_class_sysfs.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/gpu/drm/xe/xe_hw_engine_class_sysfs.c b/drivers/gpu/drm/xe/xe_hw_engine_class_sysfs.c index c17cce53f19d..aba01edffacd 100644 --- a/drivers/gpu/drm/xe/xe_hw_engine_class_sysfs.c +++ b/drivers/gpu/drm/xe/xe_hw_engine_class_sysfs.c @@ -7,6 +7,7 @@ #include <linux/kobject.h> #include <linux/sysfs.h> +#include "xe_device.h" #include "xe_gt.h" #include "xe_hw_engine_class_sysfs.h" #include "xe_pm.h" @@ -569,18 +570,6 @@ static void xe_hw_engine_sysfs_kobj_release(struct kobject *kobj) kfree(kobj); } -#include "xe_pm.h" - -static inline struct xe_device *pdev_to_xe_device(struct pci_dev *pdev) -{ - return pci_get_drvdata(pdev); -} - -static inline struct xe_device *to_xe_device(const struct drm_device *dev) -{ - return container_of(dev, struct xe_device, drm); -} - static ssize_t xe_hw_engine_class_sysfs_attr_show(struct kobject *kobj, struct attribute *attr, char *buf) |