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:
parent
08c8cf9586
commit
a37eef131a
|
@ -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__ */
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue