提交 254df038 编写于 作者: T Tanmay Jagdale 提交者: Wolfram Sang

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: NTanmay Jagdale <tanmay.jagdale@broadcom.com>
Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
上级 b92b7dbc
...@@ -393,6 +393,7 @@ static int xlp9xx_i2c_probe(struct platform_device *pdev) ...@@ -393,6 +393,7 @@ static int xlp9xx_i2c_probe(struct platform_device *pdev)
init_completion(&priv->msg_complete); init_completion(&priv->msg_complete);
priv->adapter.dev.parent = &pdev->dev; priv->adapter.dev.parent = &pdev->dev;
priv->adapter.algo = &xlp9xx_i2c_algo; 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->adapter.dev.of_node = pdev->dev.of_node;
priv->dev = &pdev->dev; priv->dev = &pdev->dev;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册