return timeout >= min && timeout <= max;
 }
 
-static void kobj_xe_hw_engine_release(struct kobject *kobj)
+static void xe_hw_engine_sysfs_kobj_release(struct kobject *kobj)
 {
        kfree(kobj);
 }
 
+static ssize_t xe_hw_engine_class_sysfs_attr_show(struct kobject *kobj,
+                                                 struct attribute *attr,
+                                                 char *buf)
+{
+       struct xe_device *xe = kobj_to_xe(kobj);
+       struct kobj_attribute *kattr;
+       ssize_t ret = -EIO;
+
+       kattr = container_of(attr, struct kobj_attribute, attr);
+       if (kattr->show) {
+               xe_pm_runtime_get(xe);
+               ret = kattr->show(kobj, kattr, buf);
+               xe_pm_runtime_put(xe);
+       }
+
+       return ret;
+}
+
+static ssize_t xe_hw_engine_class_sysfs_attr_store(struct kobject *kobj,
+                                                  struct attribute *attr,
+                                                  const char *buf,
+                                                  size_t count)
+{
+       struct xe_device *xe = kobj_to_xe(kobj);
+       struct kobj_attribute *kattr;
+       ssize_t ret = -EIO;
+
+       kattr = container_of(attr, struct kobj_attribute, attr);
+       if (kattr->store) {
+               xe_pm_runtime_get(xe);
+               ret = kattr->store(kobj, kattr, buf, count);
+               xe_pm_runtime_put(xe);
+       }
+
+       return ret;
+}
+
+static const struct sysfs_ops xe_hw_engine_class_sysfs_ops = {
+       .show = xe_hw_engine_class_sysfs_attr_show,
+       .store = xe_hw_engine_class_sysfs_attr_store,
+};
+
 static const struct kobj_type kobj_xe_hw_engine_type = {
-       .release = kobj_xe_hw_engine_release,
-       .sysfs_ops = &kobj_sysfs_ops
+       .release = xe_hw_engine_sysfs_kobj_release,
+       .sysfs_ops = &xe_hw_engine_class_sysfs_ops,
+};
+
+static const struct kobj_type kobj_xe_hw_engine_type_def = {
+       .release = xe_hw_engine_sysfs_kobj_release,
+       .sysfs_ops = &kobj_sysfs_ops,
 };
 
 static ssize_t job_timeout_max_store(struct kobject *kobj,
        if (!kobj)
                return -ENOMEM;
 
-       kobject_init(kobj, &kobj_xe_hw_engine_type);
+       kobject_init(kobj, &kobj_xe_hw_engine_type_def);
        err = kobject_add(kobj, parent, "%s", ".defaults");
        if (err)
                goto err_object;
 }
 ALLOW_ERROR_INJECTION(xe_add_hw_engine_class_defaults, ERRNO); /* See xe_pci_probe() */
 
-static void xe_hw_engine_sysfs_kobj_release(struct kobject *kobj)
-{
-       kfree(kobj);
-}
-
-static ssize_t xe_hw_engine_class_sysfs_attr_show(struct kobject *kobj,
-                                                 struct attribute *attr,
-                                                 char *buf)
-{
-       struct xe_device *xe = kobj_to_xe(kobj);
-       struct kobj_attribute *kattr;
-       ssize_t ret = -EIO;
-
-       kattr = container_of(attr, struct kobj_attribute, attr);
-       if (kattr->show) {
-               xe_pm_runtime_get(xe);
-               ret = kattr->show(kobj, kattr, buf);
-               xe_pm_runtime_put(xe);
-       }
-
-       return ret;
-}
-
-static ssize_t xe_hw_engine_class_sysfs_attr_store(struct kobject *kobj,
-                                                  struct attribute *attr,
-                                                  const char *buf,
-                                                  size_t count)
-{
-       struct xe_device *xe = kobj_to_xe(kobj);
-       struct kobj_attribute *kattr;
-       ssize_t ret = -EIO;
-
-       kattr = container_of(attr, struct kobj_attribute, attr);
-       if (kattr->store) {
-               xe_pm_runtime_get(xe);
-               ret = kattr->store(kobj, kattr, buf, count);
-               xe_pm_runtime_put(xe);
-       }
-
-       return ret;
-}
-
-static const struct sysfs_ops xe_hw_engine_class_sysfs_ops = {
-       .show = xe_hw_engine_class_sysfs_attr_show,
-       .store = xe_hw_engine_class_sysfs_attr_store,
-};
-
-static const struct kobj_type xe_hw_engine_sysfs_kobj_type = {
-       .release = xe_hw_engine_sysfs_kobj_release,
-       .sysfs_ops = &xe_hw_engine_class_sysfs_ops,
-};
 
 static void hw_engine_class_sysfs_fini(void *arg)
 {
        if (!kobj)
                return -ENOMEM;
 
-       kobject_init(kobj, &xe_hw_engine_sysfs_kobj_type);
+       kobject_init(kobj, &kobj_xe_hw_engine_type);
 
        err = kobject_add(kobj, gt->sysfs, "engines");
        if (err)