tegra: hwpm: fix sparse warnings

Fix sparse warnings for OOT kernel.

Bug 3954363

Change-Id: Ia25a0be9e204d07a3618978b970c9d997838982e
Signed-off-by: Vedashree Vidwans <vvidwans@nvidia.com>
(cherry picked from commit 6b6ff86998e0f31facf5aa3503a90f3d40dd562c)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-hwpm/+/2888552
Reviewed-by: Adeel Raza <araza@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Vedashree Vidwans
2023-02-06 15:31:14 -08:00
committed by mobile promotions
parent 5b8bb57dcb
commit 5c6e6f4797

View File

@@ -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;
}