Patrick Georgi has submitted this change. ( https://review.coreboot.org/c/coreboot/+/37413 )
Change subject: soc/nvidia/tegra: Constify variable ......................................................................
soc/nvidia/tegra: Constify variable
Change-Id: Iab0a442e6dbde0f9abdf2d8689f9891b79a2d37a Signed-off-by: Patrick Georgi pgeorgi@google.com Reviewed-on: https://review.coreboot.org/c/coreboot/+/37413 Tested-by: build bot (Jenkins) no-reply@coreboot.org Reviewed-by: Kyösti Mälkki kyosti.malkki@gmail.com --- M src/soc/nvidia/tegra/i2c.h M src/soc/nvidia/tegra124/i2c.c M src/soc/nvidia/tegra210/i2c.c 3 files changed, 3 insertions(+), 3 deletions(-)
Approvals: build bot (Jenkins): Verified Kyösti Mälkki: Looks good to me, approved
diff --git a/src/soc/nvidia/tegra/i2c.h b/src/soc/nvidia/tegra/i2c.h index c32450b..440af69 100644 --- a/src/soc/nvidia/tegra/i2c.h +++ b/src/soc/nvidia/tegra/i2c.h @@ -168,6 +168,6 @@ }; 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 0d65b9a..e2c5a44 100644 --- a/src/soc/nvidia/tegra124/i2c.c +++ b/src/soc/nvidia/tegra124/i2c.c @@ -50,4 +50,4 @@ } };
-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 4764b78..2fa1123 100644 --- a/src/soc/nvidia/tegra210/i2c.c +++ b/src/soc/nvidia/tegra210/i2c.c @@ -50,4 +50,4 @@ } };
-unsigned int num_i2c_buses = ARRAY_SIZE(tegra_i2c_info); +const unsigned int num_i2c_buses = ARRAY_SIZE(tegra_i2c_info);