table of contents
other versions
- jessie 3.16.56-1+deb8u1
I2C_VERIFY_ADAPTER(9) | I2C and SMBus Subsystem | I2C_VERIFY_ADAPTER(9) |
NAME¶
i2c_verify_adapter - return parameter as i2c_adapter or NULLSYNOPSIS¶
struct i2c_adapter *
i2c_verify_adapter(struct device * dev);
ARGUMENTS¶
devdevice, probably from some driver model iterator
DESCRIPTION¶
When traversing the driver model tree, perhaps using driver model iterators like device_for_each_child(), you can't assume very much about the nodes you find. Use this function to avoid oopses caused by wrongly treating some non-I2C device as an i2c_adapter.COPYRIGHT¶
May 2018 | Kernel Hackers Manual 3.16 |