summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/clk/clk_fll.h
diff options
context:
space:
mode:
authorPhilip Elcan <pelcan@nvidia.com>2018-08-29 15:46:12 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-09-07 00:33:50 -0400
commit7f8226887c28267d3c2351692d4429ead1e17695 (patch)
treeaa09c45e496b058044c9d9a94c94d9922c572285 /drivers/gpu/nvgpu/clk/clk_fll.h
parent0e58ebaae13dd59b6aba5297f898e7c89fcd2742 (diff)
gpu: nvgpu: cleanup return types for MISRA 10.3
This is a big cleanup of return types across a number of modules in the nvgpu driver. Many functions were returning u32 but using negative return codes. This is a MISRA 10.3 violation by assigning signed values to a u32. JIRA NVGPU-647 Change-Id: I59ee66706321f5b5b1a07ed8c24b81583e9ba28c Signed-off-by: Philip Elcan <pelcan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1810743 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/clk/clk_fll.h')
-rw-r--r--drivers/gpu/nvgpu/clk/clk_fll.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/clk/clk_fll.h b/drivers/gpu/nvgpu/clk/clk_fll.h
index 79ecf5e1..7f7cad97 100644
--- a/drivers/gpu/nvgpu/clk/clk_fll.h
+++ b/drivers/gpu/nvgpu/clk/clk_fll.h
@@ -28,8 +28,8 @@
28#include "boardobj/boardobjgrpmask.h" 28#include "boardobj/boardobjgrpmask.h"
29 29
30/*data and function definition to talk to driver*/ 30/*data and function definition to talk to driver*/
31u32 clk_fll_sw_setup(struct gk20a *g); 31int clk_fll_sw_setup(struct gk20a *g);
32u32 clk_fll_pmu_setup(struct gk20a *g); 32int clk_fll_pmu_setup(struct gk20a *g);
33 33
34struct avfsfllobjs { 34struct avfsfllobjs {
35 struct boardobjgrp_e32 super; 35 struct boardobjgrp_e32 super;
@@ -79,4 +79,3 @@ u32 nvgpu_clk_get_vbios_clk_domain_gp10x( u32 vbios_domain);
79 (pclk->avfs_fllobjs.lut_step_size_uv) 79 (pclk->avfs_fllobjs.lut_step_size_uv)
80 80
81#endif 81#endif
82