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>
This commit is contained in:
Patrick Georgi 2019-12-02 11:42:44 +01:00
parent 08c8cf9586
commit a37eef131a
3 changed files with 3 additions and 3 deletions

View File

@ -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__ */

View File

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

View File

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