This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

I2C0 的初始化和 I2C1的初始化。



Ti sdk

在board-am335xevm.c 裡

static struct i2c_board_info __initdata am335x_i2c0_boardinfo[]  和  static struct i2c_board_info am335x_i2c1_boardinfo[],為啥有分 __initdata 和 沒有 __initidata? 有啥差別嗎? 假設我device都不在 i2c0 上,我可以直接將 static struct i2c_board_info __initdata am335x_i2c0_boardinfo[] 改成

static struct i2c_board_info __initdata am335x_i2c1_boardinfo[] 嗎? 謝謝。