1I2C_ADD_NUMBERED_ADA(9)     I2C and SMBus Subsystem    I2C_ADD_NUMBERED_ADA(9)
2
3
4

NAME

6       i2c_add_numbered_adapter - declare i2c adapter, use static bus number
7

SYNOPSIS

9       int i2c_add_numbered_adapter(struct i2c_adapter * adap);
10

ARGUMENTS

12       adap
13           the adapter to register (with adap->nr initialized)
14

CONTEXT

16       can sleep
17

DESCRIPTION

19       This routine is used to declare an I2C adapter when its bus number
20       matters. For example, use it for I2C adapters from system-on-chip CPUs,
21       or otherwise built in to the system´s mainboard, and where
22       i2c_board_info is used to properly configure I2C devices.
23
24       If no devices have pre-been declared for this bus, then be sure to
25       register the adapter before any dynamically allocated ones. Otherwise
26       the required bus ID may not be available.
27
28       When this returns zero, the specified adapter became available for
29       clients using the bus number provided in adap->nr. Also, the table of
30       I2C devices pre-declared using i2c_register_board_info is scanned, and
31       the appropriate driver model device nodes are created. Otherwise, a
32       negative errno value is returned.
33
35Kernel Hackers Manual 2.6.         June 2019           I2C_ADD_NUMBERED_ADA(9)
Impressum