summaryrefslogtreecommitdiffstats
path: root/include/linux/of_i2c.h
Commit message (Collapse)AuthorAgeFilesLines
* drivers/of: Add the of_find_i2c_device_by_node function.Jon Smirl2009-01-091-0/+3
| | | | | | | | | | | | | The of_find_i2c_device_by_node function allows you to follow a reference in the device tree to an i2c device node and then locate the linux device instantiated by the device tree. Example use: an I2S bus driver finding the i2c_device instance for a codec described by a device tree node. This was waiting for Anton's i2c patches that were just added. Signed-off-by: Jon Smirl <jonsmirl@gmail.com> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
* [POWERPC] Fix of_i2c include for module compilationJochen Friedrich2008-05-091-4/+0
| | | | | | | | | Remove #ifdef CONFIG_OF_I2C as this breaks module compilation. Drivers using this header should depend on OF_I2C anyways, so there's no need to make this conditional. Signed-off-by: Jochen Friedrich <jochen@scram.de> Signed-off-by: Paul Mackerras <paulus@samba.org>
* [POWERPC] i2c: OF helpers for the i2c APIJochen Friedrich2008-04-171-0/+24
This implements various helpers to support OF bindings for the i2c API. Signed-off-by: Jochen Friedrich <jochen@scram.de> Acked-by: David S. Miller <davem@davemloft.net> Acked-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Paul Mackerras <paulus@samba.org>