diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2014-10-27 05:06:59 -0400 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:11:54 -0400 |
commit | 2d5ff668cbc6a932df2c9cf79627d1d340e5c2c0 (patch) | |
tree | 1d9bc4b774a9c2cea339891eaef3af5b87ee354d /drivers/gpu/nvgpu/gk20a/cde_gk20a.c | |
parent | 23a182aaa61d120c965f1bce09609cc14d4e14eb (diff) |
gpu: nvgpu: GR and LTC HAL to use const structs
Convert GR and LTC HALs to use const structs, and initialize them
with macros.
Bug 1567274
Change-Id: Ia3f24a5eccb27578d9cba69755f636818d11275c
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/590371
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/cde_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/cde_gk20a.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/cde_gk20a.c b/drivers/gpu/nvgpu/gk20a/cde_gk20a.c index 7931b83f..22a422a3 100644 --- a/drivers/gpu/nvgpu/gk20a/cde_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/cde_gk20a.c | |||
@@ -50,7 +50,7 @@ static void gk20a_deinit_cde_img(struct gk20a_cde_ctx *cde_ctx) | |||
50 | } | 50 | } |
51 | 51 | ||
52 | for (i = 0; i < cde_ctx->num_obj_ids; i++) | 52 | for (i = 0; i < cde_ctx->num_obj_ids; i++) |
53 | gk20a_free_obj_ctx(cde_ctx->ch, | 53 | gr_gk20a_free_obj_ctx(cde_ctx->ch, |
54 | &(struct nvgpu_free_obj_ctx_args) | 54 | &(struct nvgpu_free_obj_ctx_args) |
55 | { cde_ctx->obj_ids[i] }); | 55 | { cde_ctx->obj_ids[i] }); |
56 | 56 | ||
@@ -401,7 +401,7 @@ static int gk20a_init_cde_required_class(struct gk20a_cde_ctx *cde_ctx, | |||
401 | alloc_obj_ctx.class_num = required_class; | 401 | alloc_obj_ctx.class_num = required_class; |
402 | alloc_obj_ctx.padding = 0; | 402 | alloc_obj_ctx.padding = 0; |
403 | 403 | ||
404 | err = gk20a_alloc_obj_ctx(cde_ctx->ch, &alloc_obj_ctx); | 404 | err = gr_gk20a_alloc_obj_ctx(cde_ctx->ch, &alloc_obj_ctx); |
405 | if (err) { | 405 | if (err) { |
406 | gk20a_warn(&cde_ctx->pdev->dev, "cde: failed to allocate ctx. err=%d", | 406 | gk20a_warn(&cde_ctx->pdev->dev, "cde: failed to allocate ctx. err=%d", |
407 | err); | 407 | err); |