From d2be65315a9ebfc88e77489571a31c48b3d21284 Mon Sep 17 00:00:00 2001 From: Philip Elcan Date: Mon, 27 Aug 2018 12:45:27 -0400 Subject: gpu: nvgpu: fix some MISRA 10.3 violations Fix MISRA 10.3 violations in mclk_gp106.c. Cleanup cases where values were being assigned to narrower types. Changes in mclk_gp106.c required updates to other files to resolve errors and prevent introducing new violations. JIRA NVGPU-647 Change-Id: Ifdb03ad41d9dbf05dbcf79494ae8565fff6ee083 Signed-off-by: Philip Elcan Reviewed-on: https://git-master.nvidia.com/r/1809366 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/pstate/pstate.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'drivers/gpu/nvgpu/pstate') diff --git a/drivers/gpu/nvgpu/pstate/pstate.h b/drivers/gpu/nvgpu/pstate/pstate.h index 55726d55..0860b46e 100644 --- a/drivers/gpu/nvgpu/pstate/pstate.h +++ b/drivers/gpu/nvgpu/pstate/pstate.h @@ -1,7 +1,7 @@ /* * general p state infrastructure * - * Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2016-2018, 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"), @@ -39,8 +39,8 @@ struct gk20a; struct clk_set_info { enum nv_pmu_clk_clkwhich clkwhich; u32 nominal_mhz; - u32 min_mhz; - u32 max_mhz; + u16 min_mhz; + u16 max_mhz; }; struct clk_set_info_list { -- cgit v1.2.2