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

NAME

6       i2c_new_device - instantiate an i2c device
7

SYNOPSIS

9       struct i2c_client * i2c_new_device(struct i2c_adapter * adap,
10                                          struct i2c_board_info const * info);
11

ARGUMENTS

13       adap
14           the adapter managing the device
15
16       info
17           describes one I2C device; bus_num is ignored
18

CONTEXT

20       can sleep
21

DESCRIPTION

23       Create an i2c device. Binding is handled through driver model
24       probe/remove methods. A driver may be bound to this device when we
25       return from this function, or any later moment (e.g. maybe hotplugging
26       will load the driver module). This call is not appropriate for use by
27       mainboard initialization logic, which usually runs during an
28       arch_initcall long before any i2c_adapter could exist.
29
30       This returns the new i2c client, which may be saved for later use with
31       i2c_unregister_device; or NULL to indicate an error.
32
34Kernel Hackers Manual 3.10         June 2019                 I2C_NEW_DEVICE(9)
Impressum