From: Tom Rini Date: Fri, 9 Jan 2015 08:33:51 -0500 Subject: [U-Boot] i2c:mxc fix array size of i2c_data In-Reply-To: <1420524771-28736-1-git-send-email-Peng.Fan@freescale.com> References: <1420524771-28736-1-git-send-email-Peng.Fan@freescale.com> Message-ID: <20150109133351.GX10826@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 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: