diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2017-10-30 09:58:43 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-11-02 08:11:02 -0400 |
commit | e5c3b05bb2775236679b74194e4ac24612ef39b6 (patch) | |
tree | 387430a641a2e9630f56fe4dc7252b9ccdcc30a0 /drivers/gpu/nvgpu/gv11b/gr_gv11b.h | |
parent | 730ba218c1a57486f05e02cfaddf6a75e95ff498 (diff) |
gpu: nvgpu: use struct gk20a for create_gr_sysfs
API gr_gv11b_create_sysfs() and GR HAL create_gr_sysfs() right now receive
linux specific struct device
But since this function is called from/declared in common code, we need to
remove linux dependency from it
Hence update the API and GR HAL to receive struct gk20a pointer instead
of device pointer
Jira NVGPU-259
Change-Id: I65d717ad9f263f0397f8efa5761c64e55c7846eb
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1588465
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/gr_gv11b.h')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/gr_gv11b.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/gr_gv11b.h b/drivers/gpu/nvgpu/gv11b/gr_gv11b.h index feebef44..98e7bc50 100644 --- a/drivers/gpu/nvgpu/gv11b/gr_gv11b.h +++ b/drivers/gpu/nvgpu/gv11b/gr_gv11b.h | |||
@@ -80,7 +80,7 @@ int gr_gv11b_alloc_buffer(struct vm_gk20a *vm, size_t size, | |||
80 | /*zcull*/ | 80 | /*zcull*/ |
81 | void gr_gv11b_program_zcull_mapping(struct gk20a *g, u32 zcull_num_entries, | 81 | void gr_gv11b_program_zcull_mapping(struct gk20a *g, u32 zcull_num_entries, |
82 | u32 *zcull_map_tiles); | 82 | u32 *zcull_map_tiles); |
83 | void gr_gv11b_create_sysfs(struct device *dev); | 83 | void gr_gv11b_create_sysfs(struct gk20a *g); |
84 | 84 | ||
85 | bool gr_gv11b_is_valid_class(struct gk20a *g, u32 class_num); | 85 | bool gr_gv11b_is_valid_class(struct gk20a *g, u32 class_num); |
86 | bool gr_gv11b_is_valid_gfx_class(struct gk20a *g, u32 class_num); | 86 | bool gr_gv11b_is_valid_gfx_class(struct gk20a *g, u32 class_num); |