summaryrefslogtreecommitdiffstats
path: root/drivers/i2c
diff options
context:
space:
mode:
authorTanmay Jagdale <tanmay.jagdale@broadcom.com>2016-09-16 00:57:39 +0530
committerWolfram Sang <wsa@the-dreams.de>2016-11-18 02:25:38 +0100
commit254df038e5ca275be437d5fa562d7f59beab6ef5 (patch)
tree25969dc33f5e936b577b01b4bd6a7e2e3ae0f5ea /drivers/i2c
parentb92b7dbc714f3e604102ad0f056124fd5f8c00ce (diff)
downloadlinux-0-day-254df038e5ca275be437d5fa562d7f59beab6ef5.tar.gz
linux-0-day-254df038e5ca275be437d5fa562d7f59beab6ef5.tar.xz
i2c: xlp9xx: ACPI support for I2C clients
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> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c')
-rw-r--r--drivers/i2c/busses/i2c-xlp9xx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/i2c/busses/i2c-xlp9xx.c b/drivers/i2c/busses/i2c-xlp9xx.c
index e29ff37a43bd6..84a8b2eccffb2 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;