From 5c6e6f47974d84428c319e2ed925f3199bb505d4 Mon Sep 17 00:00:00 2001 From: Vedashree Vidwans Date: Mon, 6 Feb 2023 15:31:14 -0800 Subject: [PATCH] tegra: hwpm: fix sparse warnings Fix sparse warnings for OOT kernel. Bug 3954363 Change-Id: Ia25a0be9e204d07a3618978b970c9d997838982e Signed-off-by: Vedashree Vidwans (cherry picked from commit 6b6ff86998e0f31facf5aa3503a90f3d40dd562c) Reviewed-on: https://git-master.nvidia.com/r/c/linux-hwpm/+/2888552 Reviewed-by: Adeel Raza GVS: Gerrit_Virtual_Submit --- drivers/tegra/hwpm/os/linux/soc_utils.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/tegra/hwpm/os/linux/soc_utils.c b/drivers/tegra/hwpm/os/linux/soc_utils.c index e88e3f0..e863bbb 100644 --- a/drivers/tegra/hwpm/os/linux/soc_utils.c +++ b/drivers/tegra/hwpm/os/linux/soc_utils.c @@ -39,7 +39,7 @@ static struct hwpm_soc_chip_info chip_info = { }; static bool chip_info_initialized; -const struct hwpm_soc_chip_info t234_chip_info = { +static const struct hwpm_soc_chip_info t234_soc_chip_info = { .chip_id = 0x23, .chip_id_rev = 0x4, .platform = PLAT_SI, @@ -70,9 +70,9 @@ int tegra_hwpm_init_chip_info(struct tegra_hwpm_os_linux *hwpm_linux) #endif /* Get device node info from device tree */ if (of_machine_is_compatible("nvidia,tegra234")) { - chip_info.chip_id = t234_chip_info.chip_id; - chip_info.chip_id_rev = t234_chip_info.chip_id_rev; - chip_info.platform = t234_chip_info.platform; + chip_info.chip_id = t234_soc_chip_info.chip_id; + chip_info.chip_id_rev = t234_soc_chip_info.chip_id_rev; + chip_info.platform = t234_soc_chip_info.platform; goto complete; }