linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* i2c: xlp9xx: ACPI support for I2C clients
@ 2016-09-15 19:27 Tanmay Jagdale
  2016-09-21 21:17 ` Wolfram Sang
  2016-11-18  1:27 ` Wolfram Sang
  0 siblings, 2 replies; 5+ messages in thread
From: Tanmay Jagdale @ 2016-09-15 19:27 UTC (permalink / raw)
  To: wsa; +Cc: linux-i2c, jayachandran.chandrashekaran, Tanmay Jagdale

The ACPI companion of the adapter has to be set for I2C controller
code to read and attach the slave devices described in the ACPI table
with the I2CSerialBus resource descriptor. Used ACPI_COMPANION_SET
macro to set this.

Signed-off-by: Tanmay Jagdale <tanmay.jagdale@broadcom.com>
---
 drivers/i2c/busses/i2c-xlp9xx.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/i2c/busses/i2c-xlp9xx.c b/drivers/i2c/busses/i2c-xlp9xx.c
index 55a7bef..916f192 100644
--- a/drivers/i2c/busses/i2c-xlp9xx.c
+++ b/drivers/i2c/busses/i2c-xlp9xx.c
@@ -393,6 +393,7 @@ static int xlp9xx_i2c_probe(struct platform_device *pdev)
 	init_completion(&priv->msg_complete);
 	priv->adapter.dev.parent = &pdev->dev;
 	priv->adapter.algo = &xlp9xx_i2c_algo;
+	ACPI_COMPANION_SET(&(priv->adapter.dev), ACPI_COMPANION(&pdev->dev));
 	priv->adapter.dev.of_node = pdev->dev.of_node;
 	priv->dev = &pdev->dev;
 
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-11-19 21:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-15 19:27 i2c: xlp9xx: ACPI support for I2C clients Tanmay Jagdale
2016-09-21 21:17 ` Wolfram Sang
2016-09-26 10:43   ` [PATCH v2] " Tanmay Jagdale
2016-11-19 21:10     ` [v2] " Wolfram Sang
2016-11-18  1:27 ` Wolfram Sang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).