Home
last modified time | relevance | path

Searched refs:I2C_MAJOR (Results 1 – 2 of 2) sorted by relevance

/Linux-v4.19/drivers/i2c/
Di2c-dev.c648 res = cdev_add(&i2c_dev->cdev, MKDEV(I2C_MAJOR, adap->nr), 1); in i2cdev_attach_adapter()
654 MKDEV(I2C_MAJOR, adap->nr), NULL, in i2cdev_attach_adapter()
686 device_destroy(i2c_dev_class, MKDEV(I2C_MAJOR, adap->nr)); in i2cdev_detach_adapter()
723 res = register_chrdev_region(MKDEV(I2C_MAJOR, 0), I2C_MINORS, "i2c"); in i2c_dev_init()
747 unregister_chrdev_region(MKDEV(I2C_MAJOR, 0), I2C_MINORS); in i2c_dev_init()
758 unregister_chrdev_region(MKDEV(I2C_MAJOR, 0), I2C_MINORS); in i2c_dev_exit()
/Linux-v4.19/include/linux/
Di2c-dev.h27 #define I2C_MAJOR 89 /* Device major number */ macro