From a605a09e2a74f31abc3755a6e383311317e3b909 Mon Sep 17 00:00:00 2001 From: smadhavan Date: Tue, 11 Sep 2018 12:06:17 +0530 Subject: nvgpu: clk: MISRA Rule 21.2 header guard fixes MISRA rule 21.2 doesn't allow the use of macro names which start with an underscore. These leading underscores are to be removed from the macro names. This patch will fix such violations in clk by renaming them to follow the convention, 'NVGPU_PARENT-DIR_HEADER-NAME' when there is no keyword repetition between file name and directory or 'NVGPU_HEADER-NAME' when there is repetition. JIRA NVGPU-1028 Change-Id: I5305066dffcfb03e3c99fb501e783dcc70765b11 Signed-off-by: smadhavan Reviewed-on: https://git-master.nvidia.com/r/1809069 Reviewed-by: svc-misra-checker Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Konsta Holtta Reviewed-by: Adeel Raza GVS: Gerrit_Virtual_Submit Reviewed-by: Vijayakumar Subbu Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/clk/clk_freq_controller.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'drivers/gpu/nvgpu/clk/clk_freq_controller.h') diff --git a/drivers/gpu/nvgpu/clk/clk_freq_controller.h b/drivers/gpu/nvgpu/clk/clk_freq_controller.h index 659b75d5..7ae475c1 100644 --- a/drivers/gpu/nvgpu/clk/clk_freq_controller.h +++ b/drivers/gpu/nvgpu/clk/clk_freq_controller.h @@ -20,8 +20,8 @@ * DEALINGS IN THE SOFTWARE. */ -#ifndef _CLK_FREQ_CONTROLLER_H_ -#define _CLK_FREQ_CONTROLLER_H_ +#ifndef NVGPU_CLK_FREQ_CONTROLLER_H +#define NVGPU_CLK_FREQ_CONTROLLER_H #define CTRL_CLK_CLK_FREQ_CONTROLLER_ID_ALL 0xFF #define CTRL_CLK_CLK_FREQ_CONTROLLER_ID_SYS 0x00 @@ -81,4 +81,4 @@ struct clk_freq_controllers { int clk_freq_controller_sw_setup(struct gk20a *g); int clk_freq_controller_pmu_setup(struct gk20a *g); -#endif +#endif /* NVGPU_CLK_FREQ_CONTROLLER_H */ -- cgit v1.2.2