linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V2] i2c: xgene: Set ACPI_COMPANION_I2C
@ 2017-05-17  4:25 Tin Huynh
  2017-05-17  7:20 ` Wolfram Sang
  0 siblings, 1 reply; 2+ messages in thread
From: Tin Huynh @ 2017-05-17  4:25 UTC (permalink / raw)
  To: Wolfram Sang, linux-i2c, linux-acpi, linux-kernel
  Cc: Loc Ho, Phong Vo, Thang Nguyen, patches, Tin Huynh

With ACPI, i2c-core requires ACPI companion to be set in order for it
to create slave device.
This patch sets the ACPI companion accordingly.

Signed-off-by: Tin Huynh <tnhuynh@apm.com>

---
 drivers/i2c/busses/i2c-xgene-slimpro.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Change from V1: 
 - Add Signed-off and full name to the mail header.

diff --git a/drivers/i2c/busses/i2c-xgene-slimpro.c b/drivers/i2c/busses/i2c-xgene-slimpro.c
index dbe7e44..6ba6c83 100644
--- a/drivers/i2c/busses/i2c-xgene-slimpro.c
+++ b/drivers/i2c/busses/i2c-xgene-slimpro.c
@@ -416,6 +416,7 @@ static int xgene_slimpro_i2c_probe(struct platform_device *pdev)
 	adapter->class = I2C_CLASS_HWMON;
 	adapter->dev.parent = &pdev->dev;
 	adapter->dev.of_node = pdev->dev.of_node;
+	ACPI_COMPANION_SET(&adapter->dev, ACPI_COMPANION(&pdev->dev));
 	i2c_set_adapdata(adapter, ctx);
 	rc = i2c_add_adapter(adapter);
 	if (rc) {
-- 
1.7.1

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

* Re: [PATCH V2] i2c: xgene: Set ACPI_COMPANION_I2C
  2017-05-17  4:25 [PATCH V2] i2c: xgene: Set ACPI_COMPANION_I2C Tin Huynh
@ 2017-05-17  7:20 ` Wolfram Sang
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfram Sang @ 2017-05-17  7:20 UTC (permalink / raw)
  To: Tin Huynh
  Cc: linux-i2c, linux-acpi, linux-kernel, Loc Ho, Phong Vo,
	Thang Nguyen, patches

[-- Attachment #1: Type: text/plain, Size: 311 bytes --]

On Wed, May 17, 2017 at 11:25:34AM +0700, Tin Huynh wrote:
> With ACPI, i2c-core requires ACPI companion to be set in order for it
> to create slave device.
> This patch sets the ACPI companion accordingly.
> 
> Signed-off-by: Tin Huynh <tnhuynh@apm.com>
> 

Perfect! Applied to for-current, thanks!


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

end of thread, other threads:[~2017-05-17  7:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-17  4:25 [PATCH V2] i2c: xgene: Set ACPI_COMPANION_I2C Tin Huynh
2017-05-17  7:20 ` 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).