From 972c42fddf13f658242a4f92124e5fcf194672b3 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Thu, 27 Jul 2017 13:31:32 -0700 Subject: gpu: nvgpu: Move debugfs fields to os_linux Move all Linux specific debugfs dentry fields to struct nvgpu_os_linux. JIRA NVGPU-62 Change-Id: I615620005f5d042943dd2e478c1629bcc912c550 Signed-off-by: Terje Bergstrom Reviewed-on: https://git-master.nvidia.com/r/1528263 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/linux/debug_cde.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'drivers/gpu/nvgpu/common/linux/debug_cde.c') diff --git a/drivers/gpu/nvgpu/common/linux/debug_cde.c b/drivers/gpu/nvgpu/common/linux/debug_cde.c index 8fcc6e84..40cc64a4 100644 --- a/drivers/gpu/nvgpu/common/linux/debug_cde.c +++ b/drivers/gpu/nvgpu/common/linux/debug_cde.c @@ -34,19 +34,20 @@ static const struct file_operations gk20a_cde_reload_fops = { void gk20a_cde_debugfs_init(struct gk20a *g) { + struct nvgpu_os_linux *l = nvgpu_os_linux_from_gk20a(g); struct gk20a_platform *platform = dev_get_drvdata(dev_from_gk20a(g)); if (!platform->has_cde) return; debugfs_create_u32("cde_parameter", S_IWUSR | S_IRUGO, - platform->debugfs, &g->cde_app.shader_parameter); + l->debugfs, &g->cde_app.shader_parameter); debugfs_create_u32("cde_ctx_count", S_IWUSR | S_IRUGO, - platform->debugfs, &g->cde_app.ctx_count); + l->debugfs, &g->cde_app.ctx_count); debugfs_create_u32("cde_ctx_usecount", S_IWUSR | S_IRUGO, - platform->debugfs, &g->cde_app.ctx_usecount); + l->debugfs, &g->cde_app.ctx_usecount); debugfs_create_u32("cde_ctx_count_top", S_IWUSR | S_IRUGO, - platform->debugfs, &g->cde_app.ctx_count_top); - debugfs_create_file("reload_cde_firmware", S_IWUSR, platform->debugfs, + l->debugfs, &g->cde_app.ctx_count_top); + debugfs_create_file("reload_cde_firmware", S_IWUSR, l->debugfs, g, &gk20a_cde_reload_fops); } -- cgit v1.2.2