[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20221124110718.3925934-2-sbinding@opensource.cirrus.com>
Date: Thu, 24 Nov 2022 11:07:17 +0000
From: Stefan Binding <sbinding@...nsource.cirrus.com>
To: Andy Shevchenko <andy.shevchenko@...il.com>,
Dmitry Torokhov <dmitry.torokhov@...il.com>,
"Rafael J . Wysocki" <rafael@...nel.org>,
Hans de Goede <hdegoede@...hat.com>,
Mark Gross <markgross@...nel.org>,
Jaroslav Kysela <perex@...ex.cz>, Takashi Iwai <tiwai@...e.com>
CC: <alsa-devel@...a-project.org>, <linux-kernel@...r.kernel.org>,
<platform-driver-x86@...r.kernel.org>,
<patches@...nsource.cirrus.com>,
Stefan Binding <sbinding@...nsource.cirrus.com>
Subject: [PATCH v1 1/2] platform/x86: serial-multi-instantiate: Set fwnode for i2c
This allows the i2c driver to obtain the ACPI_COMPANION.
Signed-off-by: Stefan Binding <sbinding@...nsource.cirrus.com>
---
drivers/platform/x86/serial-multi-instantiate.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/platform/x86/serial-multi-instantiate.c b/drivers/platform/x86/serial-multi-instantiate.c
index 5362f1a7b77c..15ef2f3c442e 100644
--- a/drivers/platform/x86/serial-multi-instantiate.c
+++ b/drivers/platform/x86/serial-multi-instantiate.c
@@ -194,6 +194,7 @@ static int smi_i2c_probe(struct platform_device *pdev, struct smi *smi,
strscpy(board_info.type, inst_array[i].type, I2C_NAME_SIZE);
snprintf(name, sizeof(name), "%s-%s.%d", dev_name(dev), inst_array[i].type, i);
board_info.dev_name = name;
+ board_info.fwnode = acpi_fwnode_handle(adev);
ret = smi_get_irq(pdev, adev, &inst_array[i]);
if (ret < 0)
--
2.34.1
Powered by blists - more mailing lists