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
@@ -63,7 +63,7 @@ static int _pwr_domains_pmudatainit_ina3221(struct gk20a *g,
|
||||
int status = 0;
|
||||
u32 indx;
|
||||
|
||||
status = boardobj_pmudatainit_super(g, board_obj_ptr, ppmudata);
|
||||
status = nvgpu_boardobj_pmu_data_init_super(g, board_obj_ptr, ppmudata);
|
||||
if (status != 0) {
|
||||
nvgpu_err(g,
|
||||
"error updating pmu boardobjgrp for pwr domain 0x%x",
|
||||
@@ -100,7 +100,7 @@ static struct boardobj *construct_pwr_device(struct gk20a *g,
|
||||
struct pwr_device_ina3221 *pwrdev;
|
||||
struct pwr_device_ina3221 *ina3221 = (struct pwr_device_ina3221*)pargs;
|
||||
|
||||
status = boardobj_construct_super(g, &board_obj_ptr,
|
||||
status = nvgpu_boardobj_construct_super(g, &board_obj_ptr,
|
||||
pargs_size, pargs);
|
||||
if (status != 0) {
|
||||
return NULL;
|
||||
@@ -296,11 +296,12 @@ int pmgr_device_sw_setup(struct gk20a *g)
|
||||
struct pwr_devices *ppwrdeviceobjs;
|
||||
|
||||
/* Construct the Super Class and override the Interfaces */
|
||||
status = boardobjgrpconstruct_e32(g, &g->pmgr_pmu->pmgr_deviceobjs.super);
|
||||
status = nvgpu_boardobjgrp_construct_e32(g,
|
||||
&g->pmgr_pmu->pmgr_deviceobjs.super);
|
||||
if (status != 0) {
|
||||
nvgpu_err(g,
|
||||
"error creating boardobjgrp for pmgr devices, status - 0x%x",
|
||||
status);
|
||||
"error creating boardobjgrp for pmgr devices, "
|
||||
"status - 0x%x", status);
|
||||
goto done;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user