
9 Jan
2015
9 Jan
'15
2:33 p.m.
On Tue, Jan 06, 2015 at 02:12:51PM +0800, Peng Fan wrote:
We should not hardcode array size of i2c_data to 3. To CONFIG_FSL_LSCH3, there are 4 i2c interface, but not 3. So the size of i2c_data array should be calculated using "ARRAY_SIZE(i2c_bases)".
To avoid compile error, move i2c_bases before sram_data structure which contains i2c_data array.
Signed-off-by: Peng Fan Peng.Fan@freescale.com
Applied to u-boot/master, thanks!
--
Tom