[SRU][Focal:linux-intel-iotg-5.15][PATCH 10/10] iio: pressure: dps310: Add ACPI HID table
Jian Hui Lee
jianhui.lee at canonical.com
Mon May 9 09:14:06 UTC 2022
From: Kai-Heng Feng <kai.heng.feng at canonical.com>
BugLink: https://launchpad.net/bugs/1962674
x86 boards may use ACPI HID "IFX3100" for the dps310 device.
Vendor told us feel free to add the ID and contact
"Saumitra.Chafekar at infineon.com" for further questions.
So add an ACPI match table for that accordingly.
Reviewed-by: Andy Shevchenko <andy.shevchenko at gmail.com>
Signed-off-by: Kai-Heng Feng <kai.heng.feng at canonical.com>
Link: https://lore.kernel.org/r/20220128023144.2050615-1-kai.heng.feng@canonical.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron at huawei.com>
(cherry picked from commit 72ff282819d0526d3e4417c2a61414557981b5af)
Signed-off-by: Jian Hui Lee <jianhui.lee at canonical.com>
---
drivers/iio/pressure/dps310.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/iio/pressure/dps310.c b/drivers/iio/pressure/dps310.c
index 0730380ceb69..36fb7ae0d0a9 100644
--- a/drivers/iio/pressure/dps310.c
+++ b/drivers/iio/pressure/dps310.c
@@ -812,9 +812,16 @@ static const struct i2c_device_id dps310_id[] = {
};
MODULE_DEVICE_TABLE(i2c, dps310_id);
+static const struct acpi_device_id dps310_acpi_match[] = {
+ { "IFX3100" },
+ {}
+};
+MODULE_DEVICE_TABLE(acpi, dps310_acpi_match);
+
static struct i2c_driver dps310_driver = {
.driver = {
.name = DPS310_DEV_NAME,
+ .acpi_match_table = dps310_acpi_match,
},
.probe = dps310_probe,
.id_table = dps310_id,
--
2.34.1
More information about the kernel-team
mailing list