lkml.org 
[lkml]   [2015]   [Jun]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v1 02/10] i2c: core: Have clients point to their firmware nodes
Date
This is needed by platform-independent code that needs to do something
with devices based on the data provided by the firmware.

Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
---

drivers/i2c/i2c-core.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c
index 069a41f..707850a 100644
--- a/drivers/i2c/i2c-core.c
+++ b/drivers/i2c/i2c-core.c
@@ -1295,6 +1295,7 @@ static struct i2c_client *of_i2c_register_device(struct i2c_adapter *adap,
}

info.of_node = of_node_get(node);
+ info.fwnode = info.of_node ? &info.of_node->fwnode : NULL;
info.archdata = &dev_ad;

if (of_get_property(node, "wakeup-source", NULL))
--
2.4.1


\
 
 \ /
  Last update: 2015-06-30 17:21    [W:0.216 / U:0.308 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site