i2c_add_adapter

The interface has the following parameters.
  • Synopsis:
    int i2c_add_adapter(struct i2c_adapter *adapter)
  • Description: The interface is used to declare the I2C adapter by using a dynamic bus ID.
  • Parameter:
    • adapter: The I2C adapter to add.
  • Return:
    • Success: 0.
    • Failure: Error code.