[PATCH v1 02/10] i2c: core: Have clients point to their firmware nodes
From: Tomeu Vizoso
Date: Tue Jun 30 2015 - 10:59:15 EST
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@xxxxxxxxxxxxx>
---
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/