#include <linux/list.h>
#include <linux/i2c.h>
#include <linux/i2c-dev.h>
struct i2c_dev {
struct list_head list;
struct i2c_adapter *adap;
struct device *dev;
};
#define I2C_MINORS 256
static LIST_HEAD(i2c_dev_list);
第二步: 将i2c_dev list 添加进i2c_dev_list
/* Bind to already existing adapters right away */
i2c_for_each_dev(NULL