summaryrefslogtreecommitdiffstats
path: root/include/linux/of_i2c.h
Commit message (Collapse)AuthorAgeFilesLines
* of/i2c: Generalize OF supportGrant Likely2010-07-051-3/+10
| | | | | | | This patch cleans up the i2c OF support code to make it selectable by all architectures and allow for automatic registration of i2c devices. Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
* 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>
OpenPOWER on IntegriCloud