kernel/drivers/iio/chemical/bme680_i2c.c
.. .. @@ -49,10 +49,17 @@ 49 49 }; 50 50 MODULE_DEVICE_TABLE(acpi, bme680_acpi_match); 51 51 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 +52 58 static struct i2c_driver bme680_i2c_driver = { 53 59 .driver = { 54 60 .name = "bme680_i2c", 55 61 .acpi_match_table = ACPI_PTR(bme680_acpi_match), 62 + .of_match_table = bme680_of_i2c_match,56 63 }, 57 64 .probe = bme680_i2c_probe, 58 65 .id_table = bme680_i2c_id,