[PATCH v3 1/3] drm/xe: s/xe_device_sysfs_init/xe_pm_sysfs_init
Raag Jadav
raag.jadav at intel.com
Thu Apr 17 11:12:31 UTC 2025
Attributes being exposed in xe_pm_init() are PM specific and should
follow its naming.
Signed-off-by: Raag Jadav <raag.jadav at intel.com>
---
drivers/gpu/drm/xe/xe_device_sysfs.c | 6 +++---
drivers/gpu/drm/xe/xe_device_sysfs.h | 2 +-
drivers/gpu/drm/xe/xe_pm.c | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/gpu/drm/xe/xe_device_sysfs.c b/drivers/gpu/drm/xe/xe_device_sysfs.c
index 7efbd4c52791..2d25e5b5d4bf 100644
--- a/drivers/gpu/drm/xe/xe_device_sysfs.c
+++ b/drivers/gpu/drm/xe/xe_device_sysfs.c
@@ -63,14 +63,14 @@ vram_d3cold_threshold_store(struct device *dev, struct device_attribute *attr,
static DEVICE_ATTR_RW(vram_d3cold_threshold);
-static void xe_device_sysfs_fini(void *arg)
+static void xe_pm_sysfs_fini(void *arg)
{
struct xe_device *xe = arg;
sysfs_remove_file(&xe->drm.dev->kobj, &dev_attr_vram_d3cold_threshold.attr);
}
-int xe_device_sysfs_init(struct xe_device *xe)
+int xe_pm_sysfs_init(struct xe_device *xe)
{
struct device *dev = xe->drm.dev;
int ret;
@@ -79,5 +79,5 @@ int xe_device_sysfs_init(struct xe_device *xe)
if (ret)
return ret;
- return devm_add_action_or_reset(dev, xe_device_sysfs_fini, xe);
+ return devm_add_action_or_reset(dev, xe_pm_sysfs_fini, xe);
}
diff --git a/drivers/gpu/drm/xe/xe_device_sysfs.h b/drivers/gpu/drm/xe/xe_device_sysfs.h
index f9e83d8bd2c7..2c1fabdba9e4 100644
--- a/drivers/gpu/drm/xe/xe_device_sysfs.h
+++ b/drivers/gpu/drm/xe/xe_device_sysfs.h
@@ -8,6 +8,6 @@
struct xe_device;
-int xe_device_sysfs_init(struct xe_device *xe);
+int xe_pm_sysfs_init(struct xe_device *xe);
#endif
diff --git a/drivers/gpu/drm/xe/xe_pm.c b/drivers/gpu/drm/xe/xe_pm.c
index 4e112fbacada..3a3119c3f7f4 100644
--- a/drivers/gpu/drm/xe/xe_pm.c
+++ b/drivers/gpu/drm/xe/xe_pm.c
@@ -306,7 +306,7 @@ int xe_pm_init(struct xe_device *xe)
xe->d3cold.capable = xe_pm_pci_d3cold_capable(xe);
if (xe->d3cold.capable) {
- err = xe_device_sysfs_init(xe);
+ err = xe_pm_sysfs_init(xe);
if (err)
return err;
--
2.34.1
More information about the Intel-xe
mailing list