Skip to content

Commit

Permalink
iio: humidity: hdc100x: Add ACPI HID table
Browse files Browse the repository at this point in the history
x86 boards may use ACPI HID "HDC1010" to for hdc100x device.

So add an ACPI match table for that accordingly.

Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
  • Loading branch information
khfeng authored and intel-lab-lkp committed Dec 24, 2021
1 parent c9791a9 commit 59648fe
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions drivers/iio/humidity/hdc100x.c
Original file line number Diff line number Diff line change
Expand Up @@ -417,10 +417,18 @@ static const struct of_device_id hdc100x_dt_ids[] = {
};
MODULE_DEVICE_TABLE(of, hdc100x_dt_ids);

static const struct acpi_device_id hdc100x_acpi_match[] = {
{"HDC1010"},
{ },
};

MODULE_DEVICE_TABLE(acpi, hdc100x_acpi_match);

static struct i2c_driver hdc100x_driver = {
.driver = {
.name = "hdc100x",
.of_match_table = hdc100x_dt_ids,
.acpi_match_table = ACPI_PTR(hdc100x_acpi_match),
},
.probe = hdc100x_probe,
.id_table = hdc100x_id,
Expand Down

0 comments on commit 59648fe

Please sign in to comment.