diff options
author | Javier Carrasco <javier.carrasco.cruz@gmail.com> | 2023-10-12 22:07:07 +0200 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2023-10-14 17:12:21 +0100 |
commit | b1a078a8b0dbfcac8b61618282295124e30a9dce (patch) | |
tree | 7b6bdea61ee189f4a76c417c05b46115b54b9e49 /drivers/iio | |
parent | ba251b20152c3bc6edaa05413090ca5b5f8deb7f (diff) | |
download | linux-b1a078a8b0dbfcac8b61618282295124e30a9dce.tar.gz linux-b1a078a8b0dbfcac8b61618282295124e30a9dce.tar.bz2 linux-b1a078a8b0dbfcac8b61618282295124e30a9dce.zip |
iio: si7005: Add device tree support
This device supports ACPI detection but lacks of the device tree
counterpart. Add device tree support.
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Link: https://lore.kernel.org/r/20231012-topic-si7005_devicetree-v1-1-6c8a6fa7b3ec@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio')
-rw-r--r-- | drivers/iio/humidity/si7005.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/iio/humidity/si7005.c b/drivers/iio/humidity/si7005.c index ebfb79bc9edc..9465908cc65e 100644 --- a/drivers/iio/humidity/si7005.c +++ b/drivers/iio/humidity/si7005.c @@ -169,9 +169,16 @@ static const struct i2c_device_id si7005_id[] = { }; MODULE_DEVICE_TABLE(i2c, si7005_id); +static const struct of_device_id si7005_dt_ids[] = { + { .compatible = "silabs,si7005" }, + { } +}; +MODULE_DEVICE_TABLE(of, si7005_dt_ids); + static struct i2c_driver si7005_driver = { .driver = { .name = "si7005", + .of_match_table = si7005_dt_ids, }, .probe = si7005_probe, .id_table = si7005_id, |