mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: pmgr: update type for size param
Update interfaces to use size_t to align with boardobj_construct_super() and avoid unnecessary casts. JIRA NVGPU-1008 Change-Id: I7bff681f04f43e2f599d6f47138b04b2a94bfff3 Signed-off-by: Philip Elcan <pelcan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2011436 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> Reviewed-by: svc-misra-checker <svc-misra-checker@nvidia.com> Reviewed-by: Scott Long <scottl@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Adeel Raza <araza@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
0298551613
commit
699c2a15fa
@@ -92,7 +92,7 @@ done:
|
||||
}
|
||||
|
||||
static struct boardobj *construct_pwr_device(struct gk20a *g,
|
||||
void *pargs, u16 pargs_size, u8 type)
|
||||
void *pargs, size_t pargs_size, u8 type)
|
||||
{
|
||||
struct boardobj *board_obj_ptr = NULL;
|
||||
int status;
|
||||
@@ -142,7 +142,7 @@ static int devinit_get_pwr_device_table(struct gk20a *g,
|
||||
struct pwr_sensors_2x_entry pwr_sensor_table_entry = { 0 };
|
||||
u32 index;
|
||||
u32 obj_index = 0;
|
||||
u16 pwr_device_size;
|
||||
size_t pwr_device_size;
|
||||
union {
|
||||
struct boardobj boardobj;
|
||||
struct pwr_device pwrdev;
|
||||
|
||||
Reference in New Issue
Block a user