Linux3.5内核中,IIC。
1 i2c_add_driver 2 i2c_register_driver 3 a. at24cxx_driver放入i2c_bus_type的drv链表 4 并且从dev链表里取出能匹配的i2c_client并调用probe 5 driver_register 6 7 8 b. 对于每一个适配器,调用__process_new_driver 9 对于每一个适配器,调用它的函数确定address_list里的设备是否存在 10 如果存在,再调用detect进一步确定、设置,然后i2c_new_device 11 /* Walk the adapters that are already present */ 12 i2c_for_each_dev(driver, __process_new_driver); 13 __process_new_driver 14 i2c_do_add_adapter 15 /* Detect supported devices on that bus, and instantiate them */ 16 i2c_detect(adap, driver); 17 for (i = 0; address_list[i] != I2C_CLIENT_END; i +=