Skip to content
Snippets Groups Projects
Commit c36ecf3a authored by Peng Fan's avatar Peng Fan Committed by Tom Rini
Browse files

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: default avatarPeng Fan <Peng.Fan@freescale.com>
parent 5ea01961
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment