i2c_verify_adapter(9)

i2c_verify_adapter9

Return parameter as i2c_adapter or null

Usage

struct i2c_adapter * i2c_verify_adapter(struct device * dev);

Arguments

dev

device, probably from some driver model iterator

Overview

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.

From linux-manual-3.16 3.16.56-1+deb8u1 in Debian 8 (Jessie). Parsed by carta from the page's man source.