[U-Boot] i2c:mxc fix array size of i2c_data

Tom Rini trini at ti.com
Fri Jan 9 14:33:51 CET 2015


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 at freescale.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150109/449e9f41/attachment.pgp>


More information about the U-Boot mailing list