diff options
author | Jean Delvare <khali@linux-fr.org> | 2007-05-01 23:26:31 +0200 |
---|---|---|
committer | Jean Delvare <khali@hyperion.delvare> | 2007-05-01 23:26:31 +0200 |
commit | 12b5053ac58709c7d475888bc18d1f61958afc4e (patch) | |
tree | 13a6afc6ad6d3f22568045ba71277c1331fd4283 /Documentation/i2c/writing-clients | |
parent | 0f3b48385213355a2d4408bec1b481ffcf0e8638 (diff) | |
download | kernel_samsung_smdk4412-12b5053ac58709c7d475888bc18d1f61958afc4e.zip kernel_samsung_smdk4412-12b5053ac58709c7d475888bc18d1f61958afc4e.tar.gz kernel_samsung_smdk4412-12b5053ac58709c7d475888bc18d1f61958afc4e.tar.bz2 |
i2c: Add i2c_new_probed_device()
Add a new helper function to instantiate an i2c device. It is meant as a
replacement for i2c_new_device() when you don't know for sure at which
address your I2C/SMBus device lives. This happens frequently on TV
adapters for example, you know there is a tuner chip on the bus, but
depending on the exact board model and revision, it can live at different
addresses. So, the new i2c_new_probed_device() function will probe the bus
according to a list of addresses, and as soon as one of these addresses
responds, it will call i2c_new_device() on that one address.
This function will make it possible to port the old i2c drivers to the
new model quickly.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'Documentation/i2c/writing-clients')
0 files changed, 0 insertions, 0 deletions