tegra: hwpm: fix sparse violations

- Add new line required at the end of each file.
- Update tegra_hwpm_init_chip_info() as static function.

Bug 3528414

Change-Id: I27d3a7d3c3a03e3e0c63b0fcece6ffcdf008eae1
Signed-off-by: Vedashree Vidwans <vvidwans@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2764963
Reviewed-by: Vasuki Shankar <vasukis@nvidia.com>
Reviewed-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Vedashree Vidwans
2022-08-22 14:04:32 -07:00
committed by mobile promotions
parent 738361e0e2
commit d58dbfe5a9
3 changed files with 3 additions and 3 deletions

View File

@@ -66,7 +66,7 @@ static bool tegra_hwpm_read_support_soc_tools_prop(struct platform_device *pdev)
return allow_node; return allow_node;
} }
int tegra_hwpm_init_chip_info(struct tegra_hwpm_os_linux *hwpm_linux) static int tegra_hwpm_init_chip_info(struct tegra_hwpm_os_linux *hwpm_linux)
{ {
hwpm_linux->device_info.chip = tegra_get_chip_id(); hwpm_linux->device_info.chip = tegra_get_chip_id();
hwpm_linux->device_info.chip_revision = tegra_get_major_rev(); hwpm_linux->device_info.chip_revision = tegra_get_major_rev();

View File

@@ -31,4 +31,4 @@ int tegra_hwpm_regops_writel_impl(struct tegra_soc_hwpm *hwpm,
struct hwpm_ip_inst *ip_inst, struct hwpm_ip_aperture *aperture, struct hwpm_ip_inst *ip_inst, struct hwpm_ip_aperture *aperture,
u64 addr, u32 val); u64 addr, u32 val);
#endif /* TEGRA_HWPM_OS_LINUX_IO_UTILS_H */ #endif /* TEGRA_HWPM_OS_LINUX_IO_UTILS_H */

View File

@@ -20,4 +20,4 @@ struct tegra_soc_hwpm_exec_reg_ops;
int tegra_hwpm_exec_regops(struct tegra_soc_hwpm *hwpm, int tegra_hwpm_exec_regops(struct tegra_soc_hwpm *hwpm,
struct tegra_soc_hwpm_exec_reg_ops *exec_reg_ops); struct tegra_soc_hwpm_exec_reg_ops *exec_reg_ops);
#endif /* TEGRA_HWPM_OS_LINUX_REGOPS_UTILS_H */ #endif /* TEGRA_HWPM_OS_LINUX_REGOPS_UTILS_H */