drm/i915/gt: allow setting generic data pointer
authorAndi Shyti <andi.shyti@intel.com>
Thu, 26 Mar 2020 18:11:16 +0000 (11:11 -0700)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 26 Mar 2020 21:20:51 +0000 (21:20 +0000)
commit12df6c59b6dbf26fa92f58af5e0544528ea261db
tree86ad29184d6b9d206124ba5452dd850035c130c3
parentd5e56705927e00f703b2eb5a98299dd6622d16e5
drm/i915/gt: allow setting generic data pointer

When registering debugfs files the intel gt debugfs library
forces a 'struct *gt' private data on the caller.

To be open to different usages make the new
"intel_gt_debugfs_register_files()"[*] function more generic by
converting the 'struct *gt' pointer to a 'void *' type.

I take the chance to rename the functions by using "intel_gt_" as
prefix instead of "debugfs_", so that "debugfs_gt_register_files()"
becomes "intel_gt_debugfs_register_files()".

Signed-off-by: Andi Shyti <andi.shyti@intel.com>
Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20200326181121.16869-2-daniele.ceraolospurio@intel.com
drivers/gpu/drm/i915/gt/debugfs_engines.c
drivers/gpu/drm/i915/gt/debugfs_gt.c
drivers/gpu/drm/i915/gt/debugfs_gt.h
drivers/gpu/drm/i915/gt/debugfs_gt_pm.c