From 2805f03aa0496502b64ff760f667bfe9d8a27928 Mon Sep 17 00:00:00 2001 From: smadhavan Date: Tue, 11 Sep 2018 10:31:06 +0530 Subject: nvgpu: pmgr: 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 pmgr 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: I1beda400163bfc6278763161520f918fb4a3d096 Signed-off-by: smadhavan Reviewed-on: https://git-master.nvidia.com/r/1815663 Reviewed-by: svc-misra-checker Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Vijayakumar Subbu Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/pmgr/pmgr.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'drivers/gpu/nvgpu/pmgr/pmgr.h') diff --git a/drivers/gpu/nvgpu/pmgr/pmgr.h b/drivers/gpu/nvgpu/pmgr/pmgr.h index 33daf8a9..9b142de0 100644 --- a/drivers/gpu/nvgpu/pmgr/pmgr.h +++ b/drivers/gpu/nvgpu/pmgr/pmgr.h @@ -21,8 +21,8 @@ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * DEALINGS IN THE SOFTWARE. */ -#ifndef _PMGR_H_ -#define _PMGR_H_ +#ifndef NVGPU_PMGR_H +#define NVGPU_PMGR_H #include "pwrdev.h" #include "pwrmonitor.h" @@ -40,4 +40,4 @@ int pmgr_pwr_devices_get_current(struct gk20a *g, u32 *val); int pmgr_pwr_devices_get_voltage(struct gk20a *g, u32 *val); int pmgr_pwr_devices_get_power(struct gk20a *g, u32 *val); -#endif +#endif /* NVGPU_PMGR_H */ -- cgit v1.2.2