---
name: "i2c_verify_client"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/i2c_verify_client"
---

# i2c\_verify\_client(9)

return parameter as i2c\_client, or NULL

## NAME

i2c\_verify\_client - return parameter as i2c\_client, or NULL

## SYNOPSIS

**struct i2c\_client \* i2c\_verify\_client(struct device \*** *dev***);**

## ARGUMENTS

*dev*

device, 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\_client.

## COPYRIGHT
