i2c: Export i2c_for_each_dev
authorJean Delvare <khali@linux-fr.org>
Sun, 20 Mar 2011 13:50:52 +0000 (14:50 +0100)
committerJean Delvare <khali@endymion.delvare>
Sun, 20 Mar 2011 13:50:52 +0000 (14:50 +0100)
commit7ae31482a8376fb0df3a0c5ff0677a92820c06b7
tree4c5c6b7de9c2f3775d41378e380f49918c3a9230
parent0c31f8e5720e1191b4cf46a9b5374fe6b857c53c
i2c: Export i2c_for_each_dev

Introduce i2c_for_each_dev(), an i2c device iterator with proper
locking for use by i2c-dev. This is needed so that we can get rid of
the attach_adapter and detach_adapter legacy callback functions.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/i2c/i2c-core.c
include/linux/i2c.h