From 22c72f2a29a22d41785b613f1778737c334330e8 Mon Sep 17 00:00:00 2001 From: Varun Wadekar Date: Thu, 9 Jan 2020 08:58:34 -0800 Subject: [PATCH] Tegra194: drivers: fix violations of MISRA Rule 21.1 This patch fixes the violations of Rule 21.1 from all the header files. Rule 21.1 "#define and #undef shall not be used on a reserved identifier or reserved macro name" Signed-off-by: Varun Wadekar Change-Id: I12e17a5d7158defd33b03416daab3049749905fc --- plat/nvidia/tegra/soc/t194/drivers/include/mce_private.h | 8 ++++---- plat/nvidia/tegra/soc/t194/drivers/include/se.h | 8 ++++---- plat/nvidia/tegra/soc/t194/drivers/se/se_private.h | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/plat/nvidia/tegra/soc/t194/drivers/include/mce_private.h b/plat/nvidia/tegra/soc/t194/drivers/include/mce_private.h index 7dcfd84be..226ab5bc5 100644 --- a/plat/nvidia/tegra/soc/t194/drivers/include/mce_private.h +++ b/plat/nvidia/tegra/soc/t194/drivers/include/mce_private.h @@ -1,11 +1,11 @@ /* - * Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ -#ifndef __MCE_PRIVATE_H__ -#define __MCE_PRIVATE_H__ +#ifndef MCE_PRIVATE_H +#define MCE_PRIVATE_H #include @@ -71,4 +71,4 @@ void nvg_enable_strict_checking_mode(void); /* MCE helper functions */ void mce_enable_strict_checking(void); -#endif /* __MCE_PRIVATE_H__ */ +#endif /* MCE_PRIVATE_H */ diff --git a/plat/nvidia/tegra/soc/t194/drivers/include/se.h b/plat/nvidia/tegra/soc/t194/drivers/include/se.h index 6e656f677..e7cf88d05 100644 --- a/plat/nvidia/tegra/soc/t194/drivers/include/se.h +++ b/plat/nvidia/tegra/soc/t194/drivers/include/se.h @@ -1,13 +1,13 @@ /* - * Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ -#ifndef __SE_H__ -#define __SE_H__ +#ifndef SE_H +#define SE_H int32_t tegra_se_suspend(void); void tegra_se_resume(void); -#endif /* __SE_H__ */ +#endif /* SE_H */ diff --git a/plat/nvidia/tegra/soc/t194/drivers/se/se_private.h b/plat/nvidia/tegra/soc/t194/drivers/se/se_private.h index f5c00456a..a2c5d1c38 100644 --- a/plat/nvidia/tegra/soc/t194/drivers/se/se_private.h +++ b/plat/nvidia/tegra/soc/t194/drivers/se/se_private.h @@ -1,12 +1,12 @@ /* * Copyright (c) 2020, ARM Limited and Contributors. All rights reserved. - * Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ -#ifndef __SE_PRIVATE_H__ -#define __SE_PRIVATE_H__ +#ifndef SE_PRIVATE_H +#define SE_PRIVATE_H #include @@ -82,4 +82,4 @@ static inline void tegra_se_write_32(uint32_t offset, uint32_t val) mmio_write_32(TEGRA_SE0_BASE + offset, val); } -#endif /* __SE_PRIVATE_H__ */ +#endif /* SE_PRIVATE_H */ -- GitLab