打开arch/arm/mach-s5pc100/mach-smdkc100.c
时间:2016-12-13作者:华清远见
图1 打开arch/arm/mach-s5pc100/mach-smdkc100.c 图2 Static void __init smdkc100_machine_init(void); 图3 struct i2c_devinfo *devinfo 图4 I2c_devs0 图5 &__i2c_board_list 图6 I2c_register_board_info( 0, 图3 , ARRAY_SIZE(i2c_devs0)); 图7 struct i2c_devinfo { 图8 Static struct i2c_driver lm75_driver ={ 图9 Struct bus_type i2c_bus_type = { 图10 Static struct i2c_board_info i2c_devs0[] __initdata= { 图11 LIST_HEAD(__i2c_board_list); 图12 I2c_add_driver(&lm75_driver); 图13 &i2c_bus_type; 图14 I2c_register_driver(THIS_MODULE, driver) 图15 Drive_register( &driver->driver); 图16 Bus_add_driver(drv); 图17 Driver_attach(drv); 图18 Bus_for_each_dev( drv->bus, NULL, drv, __driver_attach ;) 图19 __driver_attach(struct device *dev, void *data) 图20 Driver_match_device(struct device_driver *drv, struce device *dev) 图21 Driver_probe_device(drv, dev); 图22 Really_probe(dev, drv); 图23 Dev->bus->probe(dev) 图24 I2c_device_probe(struce device *dev); 流程图 相关资讯
发表评论
|