mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: pmu: fix return in thrm api
The api therm_domain_pmu_setup() in thrm.c was return a u32 incorrectly. It should return an int. JIRA NVGPU-1008 Change-Id: I1cf51f26fc2615671bbab4dcf78b4f60b7bdcbeb Signed-off-by: Philip Elcan <pelcan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1995883 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Alex Waterman <alexw@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
725daf3400
commit
64f87e9584
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2016-2018, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2016-2019, NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@@ -50,7 +50,7 @@ exit:
|
||||
return status;
|
||||
}
|
||||
|
||||
u32 therm_domain_pmu_setup(struct gk20a *g)
|
||||
int therm_domain_pmu_setup(struct gk20a *g)
|
||||
{
|
||||
return therm_send_pmgr_tables_to_pmu(g);
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
struct gk20a;
|
||||
|
||||
int therm_domain_sw_setup(struct gk20a *g);
|
||||
u32 therm_domain_pmu_setup(struct gk20a *g);
|
||||
int therm_domain_pmu_setup(struct gk20a *g);
|
||||
int therm_pmu_init_pmupstate(struct gk20a *g);
|
||||
void therm_pmu_free_pmupstate(struct gk20a *g);
|
||||
int therm_configure_therm_alert(struct gk20a *g);
|
||||
|
||||
Reference in New Issue
Block a user