From 92c43deefca150854193c6720717d56b61989c23 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Tue, 20 Jun 2017 12:18:47 -0700 Subject: gpu: nvgpu: Remove Linux devnode fields from gk20a Move Linux devnode related fields to a new header file os_linux.h. The class structure is defined in module.c, so move its declaration to module.h. JIRA NVGPU-38 Change-Id: I5d8920169064f4289ff61004f7f81543a9aba221 Signed-off-by: Terje Bergstrom Reviewed-on: http://git-master/r/1505927 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/linux/ioctl_tsg.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'drivers/gpu/nvgpu/common/linux/ioctl_tsg.c') diff --git a/drivers/gpu/nvgpu/common/linux/ioctl_tsg.c b/drivers/gpu/nvgpu/common/linux/ioctl_tsg.c index 9b722e9e..46bc5f59 100644 --- a/drivers/gpu/nvgpu/common/linux/ioctl_tsg.c +++ b/drivers/gpu/nvgpu/common/linux/ioctl_tsg.c @@ -29,6 +29,7 @@ #include "gk20a/tsg_gk20a.h" #include "ioctl_tsg.h" #include "ioctl_channel.h" +#include "os_linux.h" struct tsg_private { struct gk20a *g; @@ -240,13 +241,13 @@ free_ref: int nvgpu_ioctl_tsg_dev_open(struct inode *inode, struct file *filp) { - struct gk20a *g; + struct nvgpu_os_linux *l; int ret; - g = container_of(inode->i_cdev, - struct gk20a, tsg.cdev); + l = container_of(inode->i_cdev, + struct nvgpu_os_linux, tsg.cdev); gk20a_dbg_fn(""); - ret = nvgpu_ioctl_tsg_open(g, filp); + ret = nvgpu_ioctl_tsg_open(&l->g, filp); gk20a_dbg_fn("done"); return ret; } -- cgit v1.2.2