Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Javier Carrasco and committed by
Jonathan Cameron
b1a078a8 ba251b20

+7
+7
drivers/iio/humidity/si7005.c
··· 169 169 }; 170 170 MODULE_DEVICE_TABLE(i2c, si7005_id); 171 171 172 + static const struct of_device_id si7005_dt_ids[] = { 173 + { .compatible = "silabs,si7005" }, 174 + { } 175 + }; 176 + MODULE_DEVICE_TABLE(of, si7005_dt_ids); 177 + 172 178 static struct i2c_driver si7005_driver = { 173 179 .driver = { 174 180 .name = "si7005", 181 + .of_match_table = si7005_dt_ids, 175 182 }, 176 183 .probe = si7005_probe, 177 184 .id_table = si7005_id,