Searched hist:c36ecf3abfbc20719bbc7229c9a112e2e137a400 (Results 1 – 1 of 1) sorted by relevance
| /rk3399_rockchip-uboot/drivers/i2c/ |
| H A D | mxc_i2c.c | c36ecf3abfbc20719bbc7229c9a112e2e137a400 Tue Jan 06 06:12:51 UTC 2015 Peng Fan <Peng.Fan@freescale.com> i2c:mxc fix array size of i2c_data
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>
|