hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/iio/chemical/bme680_i2c.c
....@@ -49,10 +49,17 @@
4949 };
5050 MODULE_DEVICE_TABLE(acpi, bme680_acpi_match);
5151
52
+static const struct of_device_id bme680_of_i2c_match[] = {
53
+ { .compatible = "bosch,bme680", },
54
+ {},
55
+};
56
+MODULE_DEVICE_TABLE(of, bme680_of_i2c_match);
57
+
5258 static struct i2c_driver bme680_i2c_driver = {
5359 .driver = {
5460 .name = "bme680_i2c",
5561 .acpi_match_table = ACPI_PTR(bme680_acpi_match),
62
+ .of_match_table = bme680_of_i2c_match,
5663 },
5764 .probe = bme680_i2c_probe,
5865 .id_table = bme680_i2c_id,