summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/cde_gk20a.h
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2016-03-29 19:02:34 -0400
committerTerje Bergstrom <tbergstrom@nvidia.com>2016-04-08 12:42:41 -0400
commite8bac374c0ed24f05bf389e1e8b5aca47f61bd3a (patch)
tree36b6e111f8706c0560ee552bc9d6e15b87fc9621 /drivers/gpu/nvgpu/gk20a/cde_gk20a.h
parent2382a8433fddaee3baecff6ae941944850787ab7 (diff)
gpu: nvgpu: Use device instead of platform_device
Use struct device instead of struct platform_device wherever possible. This allows adding other bus types later. Change-Id: I1657287a68d85a542cdbdd8a00d1902c3d6e00ed Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1120466
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/cde_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/cde_gk20a.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/cde_gk20a.h b/drivers/gpu/nvgpu/gk20a/cde_gk20a.h
index fc5736ad..16d6b4ef 100644
--- a/drivers/gpu/nvgpu/gk20a/cde_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/cde_gk20a.h
@@ -1,7 +1,7 @@
1/* 1/*
2 * GK20A color decompression engine support 2 * GK20A color decompression engine support
3 * 3 *
4 * Copyright (c) 2014-2015, NVIDIA Corporation. All rights reserved. 4 * Copyright (c) 2014-2016, NVIDIA Corporation. All rights reserved.
5 * 5 *
6 * This program is free software; you can redistribute it and/or modify it 6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License, 7 * under the terms and conditions of the GNU General Public License,
@@ -215,7 +215,7 @@ struct gk20a_cde_param {
215 215
216struct gk20a_cde_ctx { 216struct gk20a_cde_ctx {
217 struct gk20a *g; 217 struct gk20a *g;
218 struct platform_device *pdev; 218 struct device *dev;
219 219
220 /* channel related data */ 220 /* channel related data */
221 struct channel_gk20a *ch; 221 struct channel_gk20a *ch;
@@ -288,7 +288,7 @@ int gk20a_cde_convert(struct gk20a *g,
288 struct nvgpu_fence *fence, 288 struct nvgpu_fence *fence,
289 u32 __flags, struct gk20a_cde_param *params, 289 u32 __flags, struct gk20a_cde_param *params,
290 int num_params, struct gk20a_fence **fence_out); 290 int num_params, struct gk20a_fence **fence_out);
291void gk20a_cde_debugfs_init(struct platform_device *dev); 291void gk20a_cde_debugfs_init(struct device *dev);
292 292
293int gk20a_prepare_compressible_read( 293int gk20a_prepare_compressible_read(
294 struct gk20a *g, u32 buffer_fd, u32 request, u64 offset, 294 struct gk20a *g, u32 buffer_fd, u32 request, u64 offset,