i2c_register_driver

The interface has the following parameters.
  • Synopsis:
    int i2c_register_driver(struct module *owner, struct i2c_driver *driver)
  • Description: The interface is used to register the I2C driver.
  • Parameter:
    • owner: The sub-module to which the I2C driver belongs.
    • driver: The I2C driver to add.
  • Return:
    • Success: 0.
    • Failure: Error code.