From a37eef131a81f25647ee9896d2bca3b39f8fa2c2 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Mon, 2 Dec 2019 11:42:44 +0100 Subject: soc/nvidia/tegra: Constify variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Iab0a442e6dbde0f9abdf2d8689f9891b79a2d37a Signed-off-by: Patrick Georgi Reviewed-on: https://review.coreboot.org/c/coreboot/+/37413 Tested-by: build bot (Jenkins) Reviewed-by: Kyösti Mälkki --- src/soc/nvidia/tegra/i2c.h | 2 +- src/soc/nvidia/tegra124/i2c.c | 2 +- src/soc/nvidia/tegra210/i2c.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/soc/nvidia/tegra/i2c.h b/src/soc/nvidia/tegra/i2c.h index c32450b824..440af69387 100644 --- a/src/soc/nvidia/tegra/i2c.h +++ b/src/soc/nvidia/tegra/i2c.h @@ -168,6 +168,6 @@ struct tegra_i2c_regs { }; check_member(tegra_i2c_regs, config_load, 0x8C); -extern unsigned int num_i2c_buses; +extern const unsigned int num_i2c_buses; #endif /* __SOC_NVIDIA_TEGRA_I2C_H__ */ diff --git a/src/soc/nvidia/tegra124/i2c.c b/src/soc/nvidia/tegra124/i2c.c index 0d65b9a018..e2c5a44ebe 100644 --- a/src/soc/nvidia/tegra124/i2c.c +++ b/src/soc/nvidia/tegra124/i2c.c @@ -50,4 +50,4 @@ struct tegra_i2c_bus_info tegra_i2c_info[] = { } }; -unsigned int num_i2c_buses = ARRAY_SIZE(tegra_i2c_info); +const unsigned int num_i2c_buses = ARRAY_SIZE(tegra_i2c_info); diff --git a/src/soc/nvidia/tegra210/i2c.c b/src/soc/nvidia/tegra210/i2c.c index 4764b78303..2fa1123cec 100644 --- a/src/soc/nvidia/tegra210/i2c.c +++ b/src/soc/nvidia/tegra210/i2c.c @@ -50,4 +50,4 @@ struct tegra_i2c_bus_info tegra_i2c_info[] = { } }; -unsigned int num_i2c_buses = ARRAY_SIZE(tegra_i2c_info); +const unsigned int num_i2c_buses = ARRAY_SIZE(tegra_i2c_info); -- cgit v1.2.3