1I2C_ADD_ADAPTER(9) I2C and SMBus Subsystem I2C_ADD_ADAPTER(9)
2
3
4
6 i2c_add_adapter - declare i2c adapter, use dynamic bus number
7
9 int i2c_add_adapter(struct i2c_adapter * adapter);
10
12 adapter
13 the adapter to add
14
16 can sleep
17
19 This routine is used to declare an I2C adapter when its bus number
20 doesn't matter. Examples: for I2C adapters dynamically added by USB
21 links or PCI plugin cards.
22
23 When this returns zero, a new bus number was allocated and stored in
24 adap->nr, and the specified adapter became available for clients.
25 Otherwise, a negative errno value is returned.
26
28Kernel Hackers Manual 2.6. November 2011 I2C_ADD_ADAPTER(9)