mirror of
https://github.com/torvalds/linux.git
synced 2026-09-25 09:41:03 +02:00
iio: pressure: dps310: Add ACPI HID table
x86 boards may use ACPI HID "IFX3100" for the dps310 device. Vendor told us feel free to add the ID and contact "Saumitra.Chafekar@infineon.com" for further questions. So add an ACPI match table for that accordingly. Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com> Link: https://lore.kernel.org/r/20220128023144.2050615-1-kai.heng.feng@canonical.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
parent
19d32860dc
commit
72ff282819
|
|
@ -812,9 +812,16 @@ static const struct i2c_device_id dps310_id[] = {
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(i2c, 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 = {
|
static struct i2c_driver dps310_driver = {
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = DPS310_DEV_NAME,
|
.name = DPS310_DEV_NAME,
|
||||||
|
.acpi_match_table = dps310_acpi_match,
|
||||||
},
|
},
|
||||||
.probe = dps310_probe,
|
.probe = dps310_probe,
|
||||||
.id_table = dps310_id,
|
.id_table = dps310_id,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user