Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/xe: Remove redundant functions to get xe
@ 2024-03-21 21:38 Lucas De Marchi
  2024-03-21 22:39 ` Dixit, Ashutosh
                   ` (8 more replies)
  0 siblings, 9 replies; 11+ messages in thread
From: Lucas De Marchi @ 2024-03-21 21:38 UTC (permalink / raw)
  To: intel-xe; +Cc: Rodrigo Vivi, Lucas De Marchi

xe_device.h implements these helpers, just use them.

Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
---
 drivers/gpu/drm/xe/xe_hw_engine_class_sysfs.c | 13 +------------
 1 file changed, 1 insertion(+), 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)
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2024-03-22 18:35 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-21 21:38 [PATCH] drm/xe: Remove redundant functions to get xe Lucas De Marchi
2024-03-21 22:39 ` Dixit, Ashutosh
2024-03-21 22:39 ` Dixit, Ashutosh
2024-03-22 18:35   ` Lucas De Marchi
2024-03-21 23:13 ` ✓ CI.Patch_applied: success for " Patchwork
2024-03-21 23:14 ` ✗ CI.checkpatch: warning " Patchwork
2024-03-21 23:15 ` ✓ CI.KUnit: success " Patchwork
2024-03-21 23:25 ` ✓ CI.Build: " Patchwork
2024-03-21 23:28 ` ✓ CI.Hooks: " Patchwork
2024-03-21 23:30 ` ✓ CI.checksparse: " Patchwork
2024-03-21 23:51 ` ✓ CI.BAT: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox