nvidia-oot: pm ctl driver cert & misra fixes

using this patch fixing below cert & misra errors:-
- cert_dcl37_c_violation: The reserved identifier "_TEGRA_HV_PM_CTL_H",
  which is reserved for use as identifiers with file scope in both the
  ordinary and tag name spaces, is defined.
- misra_c_2012_rule_21_1_violation: Defining or undefining a reserved
  name "_TEGRA_HV_PM_CTL_H", which is an identifier or macro name
  beginning with an underscore.
- misra_c_2012_rule_21_2_violation: "_TEGRA_HV_PM_CTL_H", an identifier
  or macro name beginning with an underscore, shall not be declared.

JIRA ESLC-8381

Change-Id: Ib944855e143c34b3019f1f93ad9f6894ebf89085
Signed-off-by: Manish Bhardwaj <mbhardwaj@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3301268
Reviewed-by: Suresh Venkatachalam <skathirampat@nvidia.com>
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com>
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Manish Bhardwaj
2025-02-12 17:26:08 +00:00
committed by Jon Hunter
parent 590c2cab5b
commit 72d65d819c

View File

@@ -3,8 +3,8 @@
* Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
*/
#ifndef _TEGRA_HV_PM_CTL_H
#define _TEGRA_HV_PM_CTL_H
#ifndef TEGRA_HV_PM_CTL_H
#define TEGRA_HV_PM_CTL_H
extern int (*tegra_hv_pm_ctl_prepare_shutdown)(void);
@@ -12,4 +12,4 @@ int tegra_hv_pm_ctl_trigger_sys_suspend(void);
int tegra_hv_pm_ctl_trigger_sys_shutdown(void);
int tegra_hv_pm_ctl_trigger_sys_reboot(void);
#endif /* _TEGRA_HV_PM_CTL_H */
#endif /* TEGRA_HV_PM_CTL_H */