i2c/gpio: add DT support
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Sun, 5 Feb 2012 10:22:34 +0000 (18:22 +0800)
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Thu, 15 Mar 2012 15:29:22 +0000 (23:29 +0800)
commit8ffaa0f40db22564efc44588a9d861d78a1fae02
tree4c255465cc79e8ec7cc36812add87b64ee06e07d
parent86a89f4ff665d385741a7831c612fc0b9aa22480
i2c/gpio: add DT support

To achieve DT support, we need to populate a custom platform_data in a
private struct from DT information. To simplify code, the adapter and
algorithm are also put into the private struct.

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Rob Herring <rob.herring@calxeda.com>
Acked-by: Wolfram Sang <w.sang@pengutronix.de>
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Documentation/devicetree/bindings/gpio/gpio_i2c.txt [new file with mode: 0644]
drivers/i2c/busses/i2c-gpio.c