- 论坛徽章:
- 0
|
(i2cdev_read)
->(i2c_master_recv)
->(i2c_transfer)
->(i2c_adapter->algo->master_xfer)
(i2cdev_write)
->(i2c_master_send)
->(i2c_transfer)
->(i2c_adapter->algo->master_xfer)
(i2cdev_ioctl)
->(i2c_transfer)
->(i2c_adapter->algo->master_xfer)
static struct file_operations i2cdev_fops = {
.owner = THIS_MODULE,
.llseek = no_llseek,
.read = i2cdev_read,
.write = i2cdev_write,
.ioctl = i2cdev_ioctl,
.open = i2cdev_open,
.release = i2cdev_release,
};
i2c_dev_init
->register_chrdev(I2C_MAJOR, "i2c", &i2cdev_fops);
用文件接口访问
i2c_adapter->algo->master_xfer是特定的I2C总线适配器的访问函数,不知道你的是什么I2C总线适配器硬件 |
|