mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: Restructure boardobjgrpmask unit
This patch does the following for boardobjgrpmask unit. 1. Remove unused functions and its pointers. 2. Append public functions with nvgpu. 3. Remove unnecessary inclusion of header files. 4. Make local functions as static. 5. Rename function names to increase readibility. 6. Remove boardobj* from static functions. Jira NVGPU-1977 Change-Id: Ie6d3bd8f55784d29ae4ba720fb3998487ad2b942 Signed-off-by: Abdul Salam <absalam@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2107167 GVS: Gerrit_Virtual_Submit Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
20cd4ce54f
commit
bc10ef568e
@@ -115,11 +115,11 @@ int nvgpu_clk_prog_sw_setup(struct gk20a *g)
|
||||
|
||||
nvgpu_log_info(g, " ");
|
||||
|
||||
status = boardobjgrpconstruct_e255(g,
|
||||
status = nvgpu_boardobjgrp_construct_e255(g,
|
||||
&g->pmu.clk_pmu->clk_progobjs->super);
|
||||
if (status != 0) {
|
||||
nvgpu_err(g,
|
||||
"error creating boardobjgrp for clk prog, status - 0x%x",
|
||||
"error creating boardobjgrp for clk prog, status- 0x%x",
|
||||
status);
|
||||
goto done;
|
||||
}
|
||||
@@ -480,7 +480,7 @@ static int clk_prog_pmudatainit_super(struct gk20a *g,
|
||||
|
||||
nvgpu_log_info(g, " ");
|
||||
|
||||
status = boardobj_pmudatainit_super(g, board_obj_ptr, ppmudata);
|
||||
status = nvgpu_boardobj_pmu_data_init_super(g, board_obj_ptr, ppmudata);
|
||||
return status;
|
||||
}
|
||||
|
||||
@@ -668,7 +668,7 @@ static int clk_prog_construct_super(struct gk20a *g,
|
||||
struct clk_prog *pclkprog;
|
||||
int status = 0;
|
||||
|
||||
status = boardobj_construct_super(g, ppboardobj,
|
||||
status = nvgpu_boardobj_construct_super(g, ppboardobj,
|
||||
size, pargs);
|
||||
if (status != 0) {
|
||||
return -EINVAL;
|
||||
|
||||
Reference in New Issue
Block a user