summaryrefslogtreecommitdiffstats
path: root/include/i2c
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-11-02 10:36:49 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2012-11-15 08:34:53 +0100
commit0e9a078d204d9404b4eb57db11f89d57eb961f00 (patch)
tree4f80e6792fbd0793b8fc00aca74af4b3289a65a5 /include/i2c
parent9b8fa53626b66eb4c3c3a74122de33c2728d8b00 (diff)
downloadbarebox-0e9a078d204d9404b4eb57db11f89d57eb961f00.tar.gz
barebox-0e9a078d204d9404b4eb57db11f89d57eb961f00.tar.xz
i2c: adapter: register it's own device
so we can show the this of i2c busses set the bus device as parent of all devices. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/i2c')
-rw-r--r--include/i2c/i2c.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/i2c/i2c.h b/include/i2c/i2c.h
index de2a7ea27d..5021dd4e51 100644
--- a/include/i2c/i2c.h
+++ b/include/i2c/i2c.h
@@ -66,7 +66,7 @@ struct i2c_msg {
*
*/
struct i2c_adapter {
- struct device_d *dev; /* ptr to device */
+ struct device_d dev; /* ptr to device */
int nr; /* bus number */
int (*master_xfer)(struct i2c_adapter *adap, struct i2c_msg *msgs, int num);
struct list_head list;