Re: [PATCH v4] drm/i915/gt: allow setting generic data pointer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Quoting Andi Shyti (2020-03-06 23:03:44)
> -void debugfs_gt_register_files(struct intel_gt *gt,
> -                              struct dentry *root,
> -                              const struct debugfs_gt_file *files,
> -                              unsigned long count)
> +void intel_gt_debugfs_register_files(struct dentry *root,
> +                                    const struct debugfs_gt_file *files,
> +                                    unsigned long count, void *data)
>  {
>         while (count--) {
> -               if (!files->eval || files->eval(gt))
> +               if (!files->eval || files->eval(data))
>                         debugfs_create_file(files->name,
> -                                           0444, root, gt,
> +                                           0444, root, data,
>                                             files->fops);
>  

And now we are not a intel_gt routine, you'll want to move again :)
i915_debugfs_utils.c ? :)
-Chris
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx



[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux