1I2C_NEW_DUMMY(9) I2C and SMBus Subsystem I2C_NEW_DUMMY(9)
2
3
4
6 i2c_new_dummy - return a new i2c device bound to a dummy driver
7
9 struct i2c_client * i2c_new_dummy(struct i2c_adapter * adapter,
10 u16 address);
11
13 adapter
14 the adapter managing the device
15
16 address
17 seven bit address to be used
18
20 can sleep
21
23 This returns an I2C client bound to the “dummy” driver, intended for
24 use with devices that consume multiple addresses. Examples of such
25 chips include various EEPROMS (like 24c04 and 24c08 models).
26
27 These dummy devices have two main uses. First, most I2C and SMBus calls
28 except i2c_transfer need a client handle; the dummy will be that
29 handle. And second, this prevents the specified address from being
30 bound to a different driver.
31
32 This returns the new i2c client, which should be saved for later use
33 with i2c_unregister_device; or NULL to indicate an error.
34
36Kernel Hackers Manual 2.6. June 2019 I2C_NEW_DUMMY(9)