---
name: "i2c_new_dummy"
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_new_dummy"
---

# i2c\_new\_dummy(9)

return a new i2c device bound to a dummy driver

## NAME

i2c\_new\_dummy - return a new i2c device bound to a dummy driver

## SYNOPSIS

**struct i2c\_client \* i2c\_new\_dummy(struct i2c\_adapter \*** *adapter***, u16** *address***);**

## ARGUMENTS

*adapter*

the adapter managing the device

*address*

seven bit address to be used

## CONTEXT

can sleep

## DESCRIPTION

This returns an I2C client bound to the “dummy” driver, intended for use with devices that consume multiple addresses. Examples of such chips include various EEPROMS (like 24c04 and 24c08 models).

These dummy devices have two main uses. First, most I2C and SMBus calls except **i2c\_transfer** need a client handle; the dummy will be that handle. And second, this prevents the specified address from being bound to a different driver.

This returns the new i2c client, which should be saved for later use with **i2c\_unregister\_device**; or NULL to indicate an error.

## COPYRIGHT
