Commit 711b6a3f authored by Kai-Heng Feng's avatar Kai-Heng Feng Committed by Jonathan Cameron

iio: humidity: hdc100x: Add ACPI HID table

x86 boards may use ACPI HID "TXNW1010" for the hdc100x device.

TI told us "The ACPI ID for TI is: https://uefi.org/node/1028 (TXNW),
therefore it would most likely be appropriate to use TXNW1010."

So add an ACPI match table for that accordingly.
Signed-off-by: default avatarKai-Heng Feng <kai.heng.feng@canonical.com>
Reviewed-by: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20220128042054.2062060-1-kai.heng.feng@canonical.comSigned-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 72ff2828
...@@ -417,10 +417,17 @@ static const struct of_device_id hdc100x_dt_ids[] = { ...@@ -417,10 +417,17 @@ static const struct of_device_id hdc100x_dt_ids[] = {
}; };
MODULE_DEVICE_TABLE(of, hdc100x_dt_ids); MODULE_DEVICE_TABLE(of, hdc100x_dt_ids);
static const struct acpi_device_id hdc100x_acpi_match[] = {
{ "TXNW1010" },
{ }
};
MODULE_DEVICE_TABLE(acpi, hdc100x_acpi_match);
static struct i2c_driver hdc100x_driver = { static struct i2c_driver hdc100x_driver = {
.driver = { .driver = {
.name = "hdc100x", .name = "hdc100x",
.of_match_table = hdc100x_dt_ids, .of_match_table = hdc100x_dt_ids,
.acpi_match_table = hdc100x_acpi_match,
}, },
.probe = hdc100x_probe, .probe = hdc100x_probe,
.id_table = hdc100x_id, .id_table = hdc100x_id,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment